@Test
@SuppressWarnings("deprecation")
public void testRawPath() {

    URI uri = URI.create("ws://localhost:9999/path%20with%20ws");
    WebSocketClientHandshaker handshaker = newHandshaker(uri);
    FullHttpRequest request = handshaker.newHandshakeRequest();
    try {
        assertEquals("/path%20with%20ws", request.getUri());
    } finally {
        request.release();
    }
}