@Test
    public void testBlankRole() {
        UserProfile profile = new CommonProfile();
        TestsHelper.expectException(() -> profile.addRole(Pac4jConstants.EMPTY_STRING), TechnicalException.class, "role cannot be blank");
    }
This class tests the {@link CommonProfile} class.
@author Jerome Leleu
@since 1.0.0
pac4j-core/src/test/java/org/pac4j/core/profile/CommonProfileTests.java