@Test
    void verifyCookieForRememberMeByAuthnRequest() throws Throwable {
        val ctx = getCookieGenerationContext();
        val cookieValueManager = new NoOpCookieValueManager(tenantExtractor);
        val gen = CookieUtils.buildCookieRetrievingGenerator(cookieValueManager, ctx);
        val context = MockRequestContext.create(applicationContext);
        context.setParameter(RememberMeCredential.REQUEST_PARAMETER_REMEMBER_ME, "true");
        WebUtils.putRememberMeAuthenticationEnabled(context, Boolean.TRUE);

        gen.addCookie(context.getHttpServletRequest(), context.getHttpServletResponse(),
            CookieRetrievingCookieGenerator.isRememberMeAuthentication(context), "CAS-Cookie-Value");
        val cookie = context.getHttpServletResponse().getCookie(ctx.getName());
        assertNotNull(cookie);
        assertEquals(ctx.getRememberMeMaxAge(), cookie.getMaxAge());
    }
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