@Test
    void verifyEmptyChainOperation() {
        val applicationContext = new StaticApplicationContext();
        applicationContext.refresh();

        val p = new DefaultChainingMultifactorAuthenticationBypassProvider(applicationContext);
        val res = p.filterMultifactorAuthenticationProviderBypassEvaluatorsBy("unknown");

        val provider = TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);
        val principal = MultifactorAuthenticationTestUtils.getPrincipal("casuser");
        val authentication = MultifactorAuthenticationTestUtils.getAuthentication(principal);
        val service = MultifactorAuthenticationTestUtils.getRegisteredService();
        assertTrue(res.shouldMultifactorAuthenticationProviderExecute(authentication, service,
            provider, new MockHttpServletRequest(), MultifactorAuthenticationTestUtils.getService(service.getServiceId())));
    }
This is {@link DefaultChainingMultifactorAuthenticationBypassProviderTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-authentication-mfa-api/src/test/java/org/apereo/cas/authentication/mfa/bypass/DefaultChainingMultifactorAuthenticationBypassProviderTests.java