final HttpResponse response = decode(ch);
assertThat(response.getStatus(), is(HttpResponseStatus.SWITCHING_PROTOCOLS));
assertThat(response.headers().get(CONNECTION), equalTo("Upgrade"));
assertThat(response.headers().get(UPGRADE), equalTo("websocket"));
assertThat(response.headers().get(CONTENT_LENGTH), is(nullValue()));
request.release();
}
private static void assertUpgradeRequest(final EmbeddedChannel ch) throws Exception {
final FullHttpRequest request = webSocketUpgradeRequest("/websocket", WebSocketVersion.V13);
ch.writeInbound(request);