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);
}
@Override
public RoomChatImpl getChat() {
return room;