@Test
    public void testNoRole() {
        val roleAttributes = new String[] {
            ATTRIB5
        };
        AuthorizationGenerator generator = new FromAttributesAuthorizationGenerator(roleAttributes);
        generator.generate(null, this.profile);
        assertEquals(0, this.profile.getRoles().size());
    }
This class tests {@link FromAttributesAuthorizationGenerator}.

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