final SockJsServiceFactory echoFactory = echoService();
final String sessionUrl = echoFactory.config().prefix() + "/abc/" + UUID.randomUUID().toString();
final FullHttpResponse response = xhrRequest(sessionUrl, echoFactory);
assertThat(response.getStatus(), is(HttpResponseStatus.OK));
assertThat(response.content().toString(UTF_8), equalTo("o\n"));
final FullHttpResponse textPlain = xhrSendRequest(sessionUrl, "[\"a\"]", "text/plain", echoFactory);
assertThat(textPlain.getStatus(), is(HttpResponseStatus.NO_CONTENT));
final FullHttpResponse json = xhrSendRequest(sessionUrl, "[\"b\"]", "application/json", echoFactory);