@Test
public void session() {
service = (RequestContextChainingServiceImpl) factory.getBean("rc2");
SessionRequestContextFactoryImpl f = getFactory(service, SessionRequestContextFactoryImpl.class);
SessionConfig config = f.getConfig();
assertEquals("SESSION_MODEL", config.getModelKey());
assertEquals(false, config.isKeepInTouch());
assertEquals("JSESSIONID", config.getId().getCookie().getName());
assertEquals("/", config.getId().getCookie().getPath());
assertEquals(0, config.getId().getCookie().getMaxAge());
assertEquals(true, config.getId().getCookie().isHttpOnly());
assertEquals(false, config.getId().getCookie().isSecure());
assertEquals("JSESSIONID", config.getId().getUrlEncode().getName());
assertEquals(true, config.getId().isCookieEnabled());
assertEquals(false, config.getId().isUrlEncodeEnabled());
}