@Test
public void write() throws IOException {

    JettyXmppWebSocket context = new JettyXmppWebSocket(serverRuntimeContext, stanzaProcessor);
    context.onOpen(outbound);
    context.write("<test></test>");
    Mockito.verify(outbound).sendMessage("<test></test>");
}