*/
public class RevokeModeratorTestCase extends AbstractGrantRevokeTestCase {
public void testRevokeModerator() throws Exception {
Room room = conference.findOrCreateRoom(ROOM2_JID, "Room 2");
Occupant occ1 = room.addOccupant(OCCUPANT1_JID, "nick");
occ1.setRole(Role.Moderator);
room.getAffiliations().add(OCCUPANT1_JID, Affiliation.Admin);
Occupant occ2 = room.addOccupant(OCCUPANT2_JID, "Nick 2");
occ2.setRole(Role.Moderator);
room.getAffiliations().add(OCCUPANT2_JID, Affiliation.Member);
// send message to room
IQStanza result = (IQStanza) IQStanza.getWrapper(sendIq(OCCUPANT1_JID, ROOM2_JID, SET, "id1",
NamespaceURIs.XEP0045_MUC_ADMIN, new IqAdminItem("Nick 2", Role.Participant)));