assertThat(key.toString(CharsetUtil.US_ASCII), equalTo("8jKS'y:G*Co,Wxa-"));
content.release();
}
private static FullHttpRequest wsUpgradeRequest() {
final FullHttpRequest request = new DefaultFullHttpRequest(HTTP_1_1, HttpMethod.GET, "/websocket");
request.headers().set(HOST, "server.test.com");
request.headers().set(UPGRADE, WEBSOCKET.toString());
request.headers().set(CONNECTION, "Upgrade");
request.headers().set(SEC_WEBSOCKET_KEY1, "4 @1 46546xW%0l 1 5");
request.headers().set(SEC_WEBSOCKET_KEY2, "12998 5 Y3 1 .P00");
request.headers().set(ORIGIN, "http://example.com");
return request;
}