@Test
    void verifyCookiePathNotModified() {
        val request = new MockHttpServletRequest();
        val response = new MockHttpServletResponse();

        val cookieValueManager = new NoOpCookieValueManager(tenantExtractor);
        var gen1 = CookieUtils.buildCookieRetrievingGenerator(cookieValueManager, getCookieGenerationContext("/custom/path/"));
        var cookie1 = gen1.addCookie(request, response, "some-value");
        assertEquals("/custom/path/", cookie1.getPath());

        gen1 = CookieUtils.buildCookieRetrievingGenerator(cookieValueManager, getCookieGenerationContext(StringUtils.EMPTY));
        cookie1 = gen1.addCookie(request, response, "some-value");
        assertEquals("/", cookie1.getPath());
    }
This is {@link CookieRetrievingCookieGeneratorTests}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-cookie/src/test/java/org/apereo/cas/web/support/CookieRetrievingCookieGeneratorTests.java