@Test
    public void testHasAnyRoleOkTwoRoles() {
        Authorizer authorizer = new RequireAnyRoleAuthorizer(ROLE2, ROLE1);
        profile.addRole(ROLE1);
        assertTrue(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