@Test
    void verifyHandlerCountMismatch() throws Throwable {
        val input = new AtLeastOneCredentialValidatedAuthenticationPolicy(true);
        val builder = new DefaultAuthenticationBuilder(CoreAuthenticationTestUtils.getPrincipal());
        val authn = builder.addFailure("Prevented", new PreventedException("error")).build();
        assertFalse(input.isSatisfiedBy(authn, mock(ConfigurableApplicationContext.class)).isSuccess());
    }
This is {@link AtLeastOneCredentialValidatedAuthenticationPolicyTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/policy/AtLeastOneCredentialValidatedAuthenticationPolicyTests.java