}
public void testDisco() throws Exception {
serverRuntimeContext.registerComponent((Component) getModule());
IQHandler infoIQHandler = createDiscoIQHandler();
StanzaBuilder request = buildRequest();
ResponseStanzaContainer resultStanzaContainer = infoIQHandler.execute(request.build(), serverRuntimeContext,
false, new TestSessionContext(serverRuntimeContext, new SessionStateHolder()), null);
Stanza resultStanza = resultStanzaContainer.getResponseStanza();
assertEquals("Disco request must not return error", "result", resultStanza.getAttributeValue("type"));
XMLElement queryElement = resultStanza.getFirstInnerElement();