public void beforeTests() {
eventBus = new SimpleEventBus();
userURI = uri("user@domain/res");
roomURI = uri("room@domain/nick");
session.setLoggedIn(userURI);
final RoomChatManagerImpl manager = new RoomChatManagerImpl(eventBus, session, new RoomChatSelectionStrategy());
final ChatProperties properties = new ChatProperties(roomURI, userURI, null);
room = (RoomChatImpl) manager.openChat(properties, true);
}