@Test
    public void testMatchesPattern() {
        val authorizer = new RequireAnyAttributeAuthorizer("^v\\d");
        authorizer.setElements("name1");
        profile.addAttribute("name1", Lists.newArrayList("v1", "v2", "nothing"));
        profile.addAttribute("name2", "v3");
        assertTrue(authorizer.isAuthorized(context, new MockSessionStore(), profiles));
    }
Tests {@link RequireAnyAttributeAuthorizer}.

@author Misagh Moayyed
@since 1.9.2
pac4j-core/src/test/java/org/pac4j/core/authorization/authorizer/RequireAnyAttributeAuthorizerTests.java