final String sessionUrl = closeFactory.config().prefix() + "/222/" + UUID.randomUUID().toString();
final EmbeddedChannel ch = channelForService(closeFactory);
removeLastInboundMessageHandlers(ch);
final FullHttpRequest request = httpPostRequest(sessionUrl + Transports.Type.XHR_STREAMING.path(), HTTP_1_1);
request.headers().set(CONNECTION, KEEP_ALIVE);
ch.writeInbound(request);
final HttpResponse response = ch.readOutbound();
assertThat(response.getStatus(), equalTo(HttpResponseStatus.OK));
assertThat(response.getProtocolVersion(), is(HTTP_1_1));
assertThat(response.headers().get(TRANSFER_ENCODING), equalTo("chunked"));