DefaultDiscoInfoStanzaGenerator sg = (DefaultDiscoInfoStanzaGenerator)getDefaultStanzaGenerator();
Stanza stanza = sg.getStanza(client, pubsubService.getBareJID(), "id123", "news");
ResponseStanzaContainer result = sendStanza(stanza, true);
assertTrue(result.hasResponse());
IQStanza response = new IQStanza(result.getResponseStanza());
assertEquals(IQStanzaType.RESULT.value(),response.getType());
assertEquals("id123", response.getAttributeValue("id")); // IDs must match
// get the query Element
XMLElement query = response.getFirstInnerElement();
List<XMLElement> inner = query.getInnerElements();
assertEquals("query", query.getName());
assertEquals("news", query.getAttributeValue("node"));