@Test
public void onMessage() throws IOException {

    TomcatXmppWebSocket context = new TomcatXmppWebSocket(serverRuntimeContext, stanzaProcessor);
    context.onTextMessage(CharBuffer.wrap("<test></test>"));
    Stanza expected = new StanzaBuilder("test").build();
    Mockito.verify(stanzaProcessor).processStanza(Mockito.eq(serverRuntimeContext),
            Mockito.any(InternalSessionContext.class), Mockito.eq(expected), Mockito.any(SessionStateHolder.class));
}