room.addOccupant(OCCUPANT2_JID, "Nick 2");
// send message to occupant 1 with type groupchat
Stanza errorStanza = sendMessage(OCCUPANT1_JID, new EntityImpl(ROOM1_JID, "Nick 2"), MessageStanzaType.GROUPCHAT, BODY);
XMLElement expectedBody = new XMLElementBuilder("body").addText(BODY).build();
assertMessageErrorStanza(errorStanza, ROOM1_JID, OCCUPANT1_JID, "modify",
"bad-request", expectedBody);
// no message should be relayed
assertNull(occupant1Queue.getNext());