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

        val evaluator = mock(MultifactorAuthenticationFailureModeEvaluator.class);
        val selector = new ChainingMultifactorAuthenticationProviderSelector(applicationContext, evaluator);

        val provider1 = TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);
        val provider2 = TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);

        val result = selector.resolve(List.of(provider1, provider2),
            RegisteredServiceTestUtils.getRegisteredService(), RegisteredServiceTestUtils.getPrincipal());
        assertInstanceOf(DefaultChainingMultifactorAuthenticationProvider.class, result);
    }
This is {@link ChainingMultifactorAuthenticationProviderSelectorTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-webflow-mfa/src/test/java/org/apereo/cas/web/flow/authentication/ChainingMultifactorAuthenticationProviderSelectorTests.java