@Test
    void verifyManyProviders() {
        val appCtx = new StaticApplicationContext();
        appCtx.refresh();

        val props = new CasConfigurationProperties();

        TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(appCtx, new TestMultifactorAuthenticationProvider());
        TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(appCtx, new TestMultifactorAuthenticationProvider("mfa-two"));

        val plan = new MultifactorAuthenticationContingencyPlan(props, appCtx);
        val principal = CoreAuthenticationTestUtils.getPrincipal(CollectionUtils.wrap("mail", List.of("cas@example.org")));
        val authentication = CoreAuthenticationTestUtils.getAuthentication(principal);
        val registeredService = CoreAuthenticationTestUtils.getRegisteredService();
        assertThrows(AuthenticationException.class, () -> plan.execute(authentication, registeredService,
            AuthenticationRiskScore.highestRiskScore(), new MockHttpServletRequest()));

    }
This is {@link MultifactorAuthenticationContingencyPlanTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-electrofence/src/test/java/org/apereo/cas/impl/plans/MultifactorAuthenticationContingencyPlanTests.java