public void testInviteMessageWithPassword() throws Exception {
String reason = "Join me!";
// add occupants to the room
Room room = conference.findOrCreateRoom(ROOM1_JID, "Room 1");
room.setPassword("secret");
room.addOccupant(OCCUPANT1_JID, "nick");
Invite invite = new Invite(null, OCCUPANT2_JID, reason);
// send message to occupant 1
assertNull(sendMessage(OCCUPANT1_JID, ROOM1_JID, null, null, new X(NamespaceURIs.XEP0045_MUC_USER, invite), null));