public void testNoAffiliations() {
Entity client2 = new EntityImpl("yoda", "starwars.com", null);
AbstractStanzaGenerator sg = getDefaultStanzaGenerator();
Stanza stanza = sg.getStanza(client2, pubsubService, "id123", null);
ResponseStanzaContainer result = sendStanza(stanza, true);
assertTrue(result.hasResponse());
IQStanza response = new IQStanza(result.getResponseStanza());
assertEquals(IQStanzaType.RESULT.value(),response.getType());
XMLElement sub = response.getFirstInnerElement().getFirstInnerElement();
assertEquals("affiliations", sub.getName());
assertEquals(0, sub.getInnerElements().size()); // there should be no affiliations
}