@Test
    public void testRoleChangeSplit() {
        val roleAttributes = new String[] {
            ATTRIB1
        };
        val generator = new FromAttributesAuthorizationGenerator(roleAttributes);
        generator.setSplitChar("|");
        generator.generate(null, this.profile);
        val roles = this.profile.getRoles();
        assertEquals(1, roles.size());
        assertTrue(roles.contains(VALUE1));
    }
This class tests {@link FromAttributesAuthorizationGenerator}.

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