@Test
    public void testAuthorizerConstraint1() {
        val authorizer = and(
            isAuthenticated(),
            requireAnyRole("profile_role")
        );
        assertTrue(authorizer.isAuthorized(MockWebContext.create(), new MockSessionStore(), profiles));
    }
Tests {@link AndAuthorizer}

@author Sergey Morgunov
@since 3.4.0
pac4j-core/src/test/java/org/pac4j/core/authorization/authorizer/AndAuthorizerTests.java