assertThat(headers.get(EXPIRES), is(notNullValue()));
assertThat(headers.get(SET_COOKIE), is("JSESSIONID=dummy;path=/"));
}
private static void verifyIframe(final String service, final String path) {
final SockJsConfig config = SockJsConfig.withPrefix(service).cookiesNeeded().build();
final EmbeddedChannel ch = channelForMockService(config);
ch.writeInbound(httpRequest(config.prefix() + path));
final FullHttpResponse response = ch.readOutbound();
assertThat(response.getStatus().code(), is(HttpResponseStatus.OK.code()));
assertThat(response.headers().get(CONTENT_TYPE), equalTo("text/html; charset=UTF-8"));
assertThat(response.headers().get(CACHE_CONTROL), equalTo("max-age=31536000, public"));
assertThat(response.headers().get(EXPIRES), is(notNullValue()));
verifyNoSET_COOKIE(response);
assertThat(response.headers().get(ETAG), is(notNullValue()));
assertThat(response.content().toString(UTF_8), equalTo(iframeHtml(config.sockJsUrl())));
}