@Test
    void verifyCookieSameSiteLax() throws Throwable {
        val ctx = getCookieGenerationContext().setSameSitePolicy("lax");

        val gen = CookieUtils.buildCookieRetrievingGenerator(new DefaultCasCookieValueManager(
            CipherExecutorResolver.with(CipherExecutor.noOp()),
            tenantExtractor,
            new DirectObjectProvider<>(mock(GeoLocationService.class)),
            DefaultCookieSameSitePolicy.INSTANCE, new PinnableCookieProperties().setPinToSession(false)), ctx);
        val context = MockRequestContext.create();
        gen.addCookie(context.getHttpServletRequest(), context.getHttpServletResponse(), false, "CAS-Cookie-Value");
        val cookie = (MockCookie) context.getHttpServletResponse().getCookie(ctx.getName());
        assertNotNull(cookie);
        assertEquals("Lax", cookie.getSameSite());
    }
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