@Test
        void verifyMultipleProvidersWithAuthenticationAttributes() throws Throwable {
            val applicationContext = new StaticApplicationContext();
            applicationContext.refresh();

            val casProperties = new CasConfigurationProperties();
            casProperties.getAuthn().getMfa()
                .getTriggers().getAuthentication().setGlobalAuthenticationAttributeNameTriggers("mfa-authn");

            val resolver = new DefaultMultifactorAuthenticationProviderResolver(MultifactorAuthenticationPrincipalResolver.identical());
            val trigger = new AuthenticationAttributeMultifactorAuthenticationTrigger(casProperties, resolver, applicationContext);
            assertProviderResolutionFromManyProviders(trigger, applicationContext, true);
        }
This is {@link DefaultMultifactorAuthenticationProviderResolverTests}.

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