assertThat(response.headers().get(HttpHeaders.Names.CONTENT_TYPE), equalTo("text/html; charset=UTF-8"));
assertThat(response.headers().get(HttpHeaders.Names.CACHE_CONTROL), equalTo("max-age=31536000, public"));
assertThat(response.headers().get(HttpHeaders.Names.EXPIRES), is(notNullValue()));
assertThat(response.headers().get(HttpHeaders.Names.SET_COOKIE), is(nullValue()));
assertThat(response.headers().get(HttpHeaders.Names.ETAG), is(notNullValue()));
response.release();
}
private static SockJsConfig config() {
return SockJsConfig.withPrefix("/simplepush").sockJsUrl("http://cdn.sockjs.org/sockjs-0.3.4.min.js").build();
}