NewCookie createAuthenticationCookie(SessionResponse token, ContainerRequestContext requestContext) {
        return makeCookie(token.getAuthenticationToken(), token.validUntil(), requestContext);
    }
@Test
    void safePath() {
        containerRequest.getHeaders().put(HttpConfiguration.OVERRIDE_HEADER,
                List.of("http://graylog.local/path/;authentication=overridden-auth-value;"));

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


        final String cookieString =
                RuntimeDelegate.getInstance().createHeaderDelegate(NewCookie.class).toString(cookie);

        final Cookie parsedCookie =
                RuntimeDelegate.getInstance().createHeaderDelegate(Cookie.class).fromString(cookieString);

        assertThat(parsedCookie.getName()).isEqualTo("authentication");
        assertThat(parsedCookie.getValue()).isEqualTo("secret-auth-value");
        assertThat(cookie.getPath()).isEqualTo("/path/authentication=overridden-auth-value/");
    }