Stanza resultStanza = infoIQHandler.handleGet(finalStanza, runtimeContext, new TestSessionContext(runtimeContext, new SessionStateHolder()));
assertTrue(resultStanza.getVerifier().onlySubelementEquals("query", NamespaceURIs.XEP0030_SERVICE_DISCOVERY_INFO));
XMLElement queryElement = resultStanza.getFirstInnerElement();
XMLElementVerifier queryVerifier = queryElement.getVerifier();
assertTrue(queryVerifier.subElementsPresentExact(4));
List<XMLElement> innerElements = queryElement.getInnerElements();
XMLElement xmlElement = innerElements.get(innerElements.size() - 1);
XMLElementVerifier xmlElementVerifier = xmlElement.getVerifier();
assertTrue(xmlElementVerifier.nameEquals("x"));
}