TestIQHandler iqHandler = new TestIQHandler();
ResponseStanzaContainer responseStanzaContainer = iqHandler.execute(stanza, sessionContext
.getServerRuntimeContext(), true, sessionContext, null);
Stanza responseStanza = responseStanzaContainer.getResponseStanza();
XMLElementVerifier verifier = responseStanza.getVerifier();
assertTrue("iq", verifier.nameEquals("iq"));
assertTrue("error type", verifier.attributeEquals("type", IQStanzaType.ERROR.value()));
assertTrue("iq-error", verifier.subElementPresent("error"));
}
public void testMissingType() {