StanzaBuilder stanzaBuilder = StanzaBuilder.createIQStanza(boundClient, server, IQStanzaType.GET, IQ_ID);
stanzaBuilder.startInnerElement("ping", NamespaceURIs.URN_XMPP_PING).endInnerElement();
Stanza requestStanza = stanzaBuilder.build();
ResponseStanzaContainer resp = handler.execute(requestStanza, sessionContext.getServerRuntimeContext(), true,
sessionContext, null);
// we should always get a response
assertTrue(resp.hasResponse());
Stanza respStanza = resp.getResponseStanza();
assertEquals("iq", respStanza.getName());
assertEquals(boundClient, respStanza.getTo());
assertEquals(server, respStanza.getFrom());
assertEquals(IQ_ID, respStanza.getAttributeValue("id"));