response.release();
}
@Test
public void iframeHtml() throws Exception {
final SockJsConfig config = config();
final String path = config.prefix() + "/iframe.html";
final FullHttpResponse response = Iframe.response(config, createHttpRequest(path));
assertThat(response.getStatus().code(), is(HttpResponseStatus.OK.code()));
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()));