@Test
public void write() throws IOException {

    TomcatXmppWebSocket context = new TomcatXmppWebSocket(serverRuntimeContext, stanzaProcessor);
    context.onOpen(outbound);
    context.write("<test></test>");
    Mockito.verify(outbound).writeTextMessage(CharBuffer.wrap("<test></test>"));
}