ResponseHandler { String cookieKey(CookieSpec spec) { return spec.name + ":" + spec.domain + ":" + spec.path; } ResponseHandler(ResponseBeanWriter writer, TemplateManager templateManager, SessionManager sessionManager); void render(RequestImpl request, ResponseImpl response, HttpServerExchange exchange, ActionLog actionLog);  }
@Test void cookieKey() { assertThat(responseHandler.cookieKey(new CookieSpec("test"))) .isNotEqualTo(responseHandler.cookieKey(new CookieSpec("test").domain("example.com"))) .isNotEqualTo(responseHandler.cookieKey(new CookieSpec("test").path("/"))); }