final EmbeddedChannel ch = channelForService(echoService(config));
removeLastInboundMessageHandlers(ch);
final String sessionUrl = serviceName + "/abc/" + UUID.randomUUID().toString();
final FullHttpRequest request = httpRequest(sessionUrl + Transports.Type.XHR.path(), GET);
request.headers().set("Cookie", ClientCookieEncoder.encode("JSESSIONID", "abcdef"));
ch.writeInbound(request);
final FullHttpResponse response2 = ch.readOutbound();
assertThat(response2.getStatus(), is(HttpResponseStatus.OK));
assertSetCookie("abcdef", response2);
}