@ParameterizedTest
    @MethodSource("getTestAuthHandlerNames")
    void verifyOperationByAuthAHandlerName(final String handlerNamePattern, final List<Object> handlerNames) {
        val provider = TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);
        val eval = new DefaultChainingMultifactorAuthenticationBypassProvider(applicationContext);
        val bypassProps = new MultifactorAuthenticationProviderBypassProperties();
        bypassProps.setAuthenticationHandlerName(handlerNamePattern);
        eval.addMultifactorAuthenticationProviderBypassEvaluator(new AuthenticationMultifactorAuthenticationProviderBypassEvaluator(
            bypassProps, TestMultifactorAuthenticationProvider.ID, applicationContext));
        val authentication = CoreAuthenticationTestUtils.getAuthentication(UUID.randomUUID().toString(),
            Map.of(AuthenticationHandler.SUCCESSFUL_AUTHENTICATION_HANDLERS, handlerNames));
        val registeredService = CoreAuthenticationTestUtils.getRegisteredService();
        val policy = new DefaultRegisteredServiceMultifactorPolicy();
        when(registeredService.getMultifactorAuthenticationPolicy()).thenReturn(policy);
        assertFalse(eval.shouldMultifactorAuthenticationProviderExecute(authentication, registeredService,
            provider, new MockHttpServletRequest(), CoreAuthenticationTestUtils.getService()));
    }
This is {@link AuthenticationMultifactorAuthenticationProviderBypassEvaluatorTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-authentication-mfa/src/test/java/org/apereo/cas/authentication/bypass/AuthenticationMultifactorAuthenticationProviderBypassEvaluatorTests.java