@Test
    public void testHasAllRolesOkDifferentOrder5() {
        val authorizer = new RequireAllRolesAuthorizer();
        authorizer.setElements(Arrays.asList(ROLE3, ROLE1));
        profile.addRole(ROLE1);
        profile.addRole(ROLE3);
        assertTrue(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