room.addOccupant(OCCUPANT1_JID, "nick");
room.addOccupant(OCCUPANT2_JID, "nick 2");
changeNick(OCCUPANT1_JID, new EntityImpl(ROOM1_JID, "new nick"));
Occupant occupant = room.findOccupantByJID(OCCUPANT1_JID);
assertEquals("new nick", occupant.getName());
Item unavailbleItem = new Item(OCCUPANT1_JID, "new nick", Affiliation.None, Role.Participant);
assertPresenceStanza(occupant1Queue.getNext(), new EntityImpl(ROOM1_JID, "nick"), OCCUPANT1_JID, "unavailable",
Arrays.asList(unavailbleItem), Arrays.asList(StatusCode.NEW_NICK, StatusCode.OWN_PRESENCE));