assertEquals(PubSubAffiliation.NONE, n1.getAffiliation(client3));
DefaultModifyAffiliationsStanzaGenerator sg = new DefaultModifyAffiliationsStanzaGenerator(n1.getName(), client2, PubSubAffiliation.NONE);
Stanza stanza = sg.getStanza(client, pubsubService, "4711", null);
ResponseStanzaContainer result = sendStanza(stanza, true);
assertTrue(result.hasResponse());
IQStanza response = new IQStanza(result.getResponseStanza());
assertEquals(IQStanzaType.RESULT.value(),response.getType());
assertEquals("4711", response.getAttributeValue("id")); // IDs must match
assertEquals(PubSubAffiliation.OWNER, n1.getAffiliation(client));
assertEquals(PubSubAffiliation.NONE, n1.getAffiliation(client2));