final EmbeddedChannel ch = channelForService(serviceFactory);
removeLastInboundMessageHandlers(ch);
final FullHttpRequest request = httpRequest(sessionUrl + Transports.Type.XHR_STREAMING.path(), POST);
ch.writeInbound(request);
final HttpResponse response = ch.readOutbound();
assertThat(response.getStatus(), equalTo(HttpResponseStatus.OK));
//Read and discard prelude
ch.readOutbound();
final DefaultHttpContent openResponse = ch.readOutbound();
assertThat(openResponse.content().toString(UTF_8), equalTo("o\n"));