@Test
    void verifyOperationWithHandlersAndAtLeastOneCredentialMustTryAll() {
        val handlers = List.of(getTestOtpAuthenticationHandler(), getAcceptUsersAuthenticationHandler(), getSimpleTestAuthenticationHandler());
        val service = CoreAuthenticationTestUtils.getService("https://example.com/high/");
        val authz = getAuthorizer(new AtLeastOneCredentialValidatedAuthenticationPolicy(true), handlers);
        val map = (Map) Map.of(
            new UsernamePasswordCredential(), getAcceptUsersAuthenticationHandler(),
            getOtpCredential(), getTestOtpAuthenticationHandler());
        val assertion = getAssertion(map);
        assertDoesNotThrow(() -> authz.authorize(new MockHttpServletRequest(), service, assertion));
    }
This is {@link AuthenticationPolicyAwareServiceTicketValidationAuthorizerTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-validation/src/test/java/org/apereo/cas/validation/AuthenticationPolicyAwareServiceTicketValidationAuthorizerTests.java