sessionContext = new TestSessionContext(context, sessionStateHolder);
}
public void testAquireSimpleStanza() {
StreamParser streamParser = new StringStreamParser("<ProtocolHandlerTestStanzaHandler xmlns='testNSURI' ></ProtocolHandlerTestStanzaHandler>");
Stanza stanza = protocolWorker.aquireStanza(sessionContext, streamParser);
assertNotNull(stanza);
Stanza expectedStanza = new StanzaBuilder("ProtocolHandlerTestStanzaHandler", "testNSURI").addNamespaceAttribute("testNSURI").build();
assertEquals("stanza full match", expectedStanza, stanza);