### Question:
WebSocket extends Transport { @Override public void onRequest(HttpServletRequest request, HttpServletResponse response) { } WebSocket(EngineIoWebSocket webSocket); @Override void onRequest(HttpServletRequest request, HttpServletResponse response); @Override void send(List<Packet<?>> packets); @Override boolean isWritable(); @Override String getName(); static final String NAME; }### Answer:
@Test public void testOnRequest() { final WebSocket webSocket = new WebSocket(Mockito.mock(EngineIoWebSocket.class)); webSocket.onRequest(Mockito.mock(HttpServletRequest.class), Mockito.mock(HttpServletResponse.class)); }