NewCookie createAuthenticationCookie(SessionResponse token, ContainerRequestContext requestContext) {
        return makeCookie(token.getAuthenticationToken(), token.validUntil(), requestContext);
    }
@Test
    void pathFromConfig() throws Exception {
        final HttpConfiguration httpConfiguration = new HttpConfiguration();
        new JadConfig(new InMemoryRepository(
                Map.of("http_external_uri", "http://graylog.local/path/from/config/")), httpConfiguration)
                .process();

        System.out.println(httpConfiguration.getHttpExternalUri());

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

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