WebSocket implements WebSocketListener, WebsocketEncoder { @Override public void onWebSocketBinary(final byte[] payload, final int offset, final int len) { } WebSocket(); @Override void onWebSocketConnect(final Session session); @Override void onWebSocketError(final Throwable throwable); @Override void onWebSocketClose(final int statusCode, final String reason); @Override void onWebSocketText(final String message); @Override void onWebSocketBinary(final byte[] payload, final int offset, final int len); void sendRoundTrip(); void flush(); void close(); void disconnect(); @Override void beginObject(); @Override void endObject(); @Override void encode(final ServerToClientModel model, final Object value); ServletUpgradeRequest getRequest(); void setRequest(final ServletUpgradeRequest request); void setApplicationManager(final ApplicationManager applicationManager); void setMonitor(final WebsocketMonitor monitor); void setContext(final TxnContext context); void setListener(final Listener listener);  }
@Test public void testOnWebSocketBinary() { webSocket.onWebSocketBinary(null, 0, 0); }