final String sessionUrl = echoFactory.config().prefix() + "/222/" + UUID.randomUUID().toString();
final EmbeddedChannel ch = channelForService(echoFactory);
removeLastInboundMessageHandlers(ch);
final FullHttpRequest request = httpRequest(sessionUrl + Transports.Type.XHR_STREAMING.path(), GET);
ch.writeInbound(request);
final HttpResponse response = ch.readOutbound();
assertThat(response.getStatus(), equalTo(HttpResponseStatus.OK));
assertThat(response.headers().get(CONTENT_TYPE), equalTo(Transports.CONTENT_TYPE_JAVASCRIPT));
SockJsTestUtil.assertCORSHeaders(response, "*");
SockJsTestUtil.verifyNoCacheHeaders(response);