ch.writeOutbound(new OpenFrame());
final HttpResponse response = ch.readOutbound();
assertThat(response.getStatus(), equalTo(HttpResponseStatus.OK));
assertThat(response.headers().get(CONTENT_TYPE), equalTo(Transports.CONTENT_TYPE_JAVASCRIPT));
assertThat(response.headers().get(TRANSFER_ENCODING), equalTo(CHUNKED.toString()));
SockJsTestUtil.assertCORSHeaders(response, "*");
SockJsTestUtil.verifyNoCacheHeaders(response);
final DefaultHttpContent prelude = ch.readOutbound();
assertThat(prelude.content().readableBytes(), is(PRELUDE_SIZE));