@Test
        void verifyOperation() throws Throwable {
            val context = MockRequestContext.create(applicationContext);

            val service = RegisteredServiceTestUtils.getRegisteredService(UUID.randomUUID().toString());
            servicesManager.save(service);
            WebUtils.putRegisteredService(context, service);

            WebUtils.putAuthentication(RegisteredServiceTestUtils.getAuthentication(), context);
            WebUtils.putServiceIntoFlowScope(context, RegisteredServiceTestUtils.getService(service.getServiceId()));

            val providers = MultifactorAuthenticationUtils.getAvailableMultifactorAuthenticationProviders(applicationContext).values();
            providers.forEach(provider -> context.addGlobalTransition(provider.getId(), provider.getId()));

            val resolvedEvents = providers.stream()
                .map(provider -> new EventFactorySupport().event(this, provider.getId()))
                .collect(Collectors.toList());
            WebUtils.putResolvedEventsAsAttribute(context, resolvedEvents);
            val result = selectiveAuthenticationProviderWebflowEventResolver.resolve(context);
            assertNotNull(result);
            assertEquals(1, result.size());
            assertEquals("mfa-fake", result.iterator().next().getId());
            assertNotNull(MultifactorAuthenticationWebflowUtils.getResolvedMultifactorAuthenticationProviders(context));
        }
This is {@link SelectiveMultifactorAuthenticationProviderWebflowEventResolverTests}.

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