@Test
        void verifyCompositeWithAuthnContextValidated() throws Throwable {
            TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);

            val provider = new DefaultChainingMultifactorAuthenticationProvider(applicationContext,
                new DefaultMultifactorAuthenticationFailureModeEvaluator(casProperties));
            provider.addMultifactorAuthenticationProvider(new TestMultifactorAuthenticationProvider());

            val event = new EventFactorySupport().event(this,
                ChainingMultifactorAuthenticationProvider.DEFAULT_IDENTIFIER,
                new LocalAttributeMap<>(MultifactorAuthenticationProvider.class.getName(), provider));
            val resolvedEvents = CollectionUtils.wrapHashSet(event);

            val attributes = new HashMap<String, List<Object>>();
            attributes.put(casProperties.getAuthn().getMfa().getCore().getAuthenticationContextAttribute(),
                List.of(TestMultifactorAuthenticationProvider.ID));
            val authentication = RegisteredServiceTestUtils.getAuthentication("casuser", attributes);
            val result = assertCompositeProvider(resolvedEvents, authentication);
            assertEquals(TestMultifactorAuthenticationProvider.ID, result.iterator().next().getId());
        }
This is {@link CompositeProviderSelectionMultifactorWebflowEventResolverTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-webflow-mfa/src/test/java/org/apereo/cas/web/flow/resolver/impl/CompositeProviderSelectionMultifactorWebflowEventResolverTests.java