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

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