public void testSendMessageToRoom() throws Exception {
chat.join("Nick");
chat2.join("Nick2");
chat.sendMessage("Fooo");
Message message = chat.nextMessage(5000);
assertNotNull(message);
assertEquals("Fooo", message.getBody());
assertEquals(ROOM_JID + "/Nick", message.getFrom());
assertEquals(TEST_USERNAME1, EntityImpl.parse(message.getTo()).getBareJID().getFullQualifiedName());
message = chat2.nextMessage(5000);
assertNotNull(message);
assertEquals("Fooo", message.getBody());
assertEquals(ROOM_JID + "/Nick", message.getFrom());
assertEquals(TEST_USERNAME2, EntityImpl.parse(message.getTo()).getBareJID().getFullQualifiedName());
}