Assert.assertEquals(fieldPersistentRoom.getValues().size(), 1);
Assert.assertEquals(fieldPersistentRoom.getValues().get(0), "1");
Assert.assertTrue(roomConfigurationForm.isPersistentRoom());
roomConfigurationForm.setRolesForWhichPresenceIsBroadcast(EnumSet.of(Role.MODERATOR, Role.PARTICIPANT));
DataForm.Field fieldPresenceBroadcast = dataForm.findField("muc#roomconfig_presencebroadcast");
Assert.assertNotNull(fieldPresenceBroadcast);
Assert.assertEquals(fieldPresenceBroadcast.getValues().size(), 2);
Assert.assertEquals(fieldPresenceBroadcast.getValues().get(0), "moderator");
Assert.assertEquals(fieldPresenceBroadcast.getValues().get(1), "participant");
Assert.assertEquals(roomConfigurationForm.getRolesForWhichPresenceIsBroadcast(), EnumSet.of(Role.MODERATOR, Role.PARTICIPANT));