assertThat(response.getStatus(), is(HttpResponseStatus.OK));
assertThat(response.getProtocolVersion(), is(HTTP_1_0));
assertThat(response.headers().get(TRANSFER_ENCODING), is(nullValue()));
if (response.headers().get(CONTENT_LENGTH) == null) {
assertThat(response.headers().get(CONNECTION), equalTo("close"));
assertThat(response.content().toString(UTF_8), equalTo("Welcome to SockJS!\n"));
assertThat(ch.isActive(), is(false));
} else {
assertThat(response.headers().get(CONTENT_LENGTH), is("19"));
assertThat(response.content().toString(UTF_8), equalTo("Welcome to SockJS!\n"));
final String connectionHeader = response.headers().get(CONNECTION);