private void checkProfile(final AuthorizationGenerator generator) {
        UserProfile profile = new CommonProfile();
        generator.generate(null, profile);
        val roles = profile.getRoles();
        assertEquals(2, roles.size());
        assertTrue(roles.containsAll(DEFAULT_ROLES_LIST));
    }
This class tests {@link DefaultRolesAuthorizationGenerator}.

@author Jerome Leleu
@since 1.8.0
pac4j-core/src/test/java/org/pac4j/core/authorization/generator/DefaultRolesAuthorizationGeneratorTests.java