### Question:
WebSocketHAProxyHandshaker extends WebSocketServerHandshaker00 { public static boolean isHAProxyReqeust(final FullHttpRequest request) { final String version = request.headers().get(Names.SEC_WEBSOCKET_VERSION); return version == null && request.content().readableBytes() == 0; } WebSocketHAProxyHandshaker(final String webSocketURL, final String subprotocols,
            final int maxFramePayloadLength); @Override ChannelFuture handshake(Channel channel, FullHttpRequest req); void addWsCodec(final ChannelFuture future); static boolean isHAProxyReqeust(final FullHttpRequest request);  }### Answer:
@Test public void isHAProxyRequest() { assertThat(WebSocketHAProxyHandshaker.isHAProxyReqeust(wsUpgradeRequest()), is(true)); assertThat(WebSocketHAProxyHandshaker.isHAProxyReqeust(wsUpgradeRequestWithBody()), is(false)); }