NewCookie createAuthenticationCookie(SessionResponse token, ContainerRequestContext requestContext) {
        return makeCookie(token.getAuthenticationToken(), token.validUntil(), requestContext);
    }
@Test
    void pathFromRequest() {
        containerRequest.getHeaders().put(HttpConfiguration.OVERRIDE_HEADER,
                List.of("http://graylog.local/path/from/request/"));

        final CookieFactory cookieFactory = new CookieFactory(new HttpConfiguration());
        final NewCookie cookie = cookieFactory.createAuthenticationCookie(sessionResponse, containerRequest);

        assertThat(cookie.getPath()).isEqualTo("/path/from/request/");
    }