new Occupant(OCCUPANT2_JID, "nick2", Affiliation.None, Role.Participant));
room.getHistory().append(StanzaBuilder.createMessageStanza(OCCUPANT2_JID, ROOM1_JID, MessageStanzaType.GROUPCHAT, null, "Body3").build(),
new Occupant(OCCUPANT2_JID, "nick2", Affiliation.None, Role.Participant));
// now, let user 1 enter room
enterRoom(OCCUPANT1_JID, ROOM1_JID_WITH_NICK, null, new History(2, null, null, null), false);
Stanza stanza = occupant1Queue.getNext();
// first stanza should be room presence
assertNotNull(stanza);
assertEquals("presence", stanza.getName());