@Test
    public void testHasAnyRoleOneRoleFail() {
        Authorizer authorizer = new RequireAnyRoleAuthorizer(new String[] {ROLE1});
        profile.addRole(ROLE2);
        assertFalse(authorizer.isAuthorized(context, new MockSessionStore(), profiles));
    }
Tests {@link RequireAnyRoleAuthorizer}.

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