final FullHttpResponse response = channel.readOutbound();
assertThat(response.getStatus(), equalTo(HttpResponseStatus.OK));
assertThat(response.content().toString(CharsetUtil.UTF_8), equalTo("o" + '\n'));
assertThat(response.getProtocolVersion(), equalTo(HttpVersion.HTTP_1_1));
SockJsTestUtil.verifyDefaultResponseHeaders(response, Transports.CONTENT_TYPE_JAVASCRIPT);
channel.finish();
}
private static FullHttpRequest request(final String body, HttpVersion httpVersion) {
final DefaultFullHttpRequest r = new DefaultFullHttpRequest(httpVersion, HttpMethod.GET, "/test");
if (body != null) {