@Test
    public void testIsRemembered() {
        AuthorizationGenerator generator = new DefaultCasAuthorizationGenerator();
        Map<String, Object> attributes = new HashMap<>();
        attributes.put(DefaultCasAuthorizationGenerator.DEFAULT_REMEMBER_ME_ATTRIBUTE_NAME, "true");
        val profile = new CasProfile();
        profile.build(ID, attributes);
        generator.generate(new CallContext(null, new MockSessionStore()), profile);
        assertEquals(true, profile.isRemembered());
    }
This class tests the {@link DefaultCasAuthorizationGenerator}.

@author Michael Remond
@since 1.5.1
pac4j-cas/src/test/java/org/pac4j/cas/authorization/DefaultCasAuthorizationGeneratorTests.java