private Set<Event> assertCompositeProvider(final MockRequestContext context, final Set<Event> resolvedEvents,
                                                   final Authentication authentication) throws Throwable {
            val service = RegisteredServiceTestUtils.getRegisteredService();
            servicesManager.save(service);
            WebUtils.putRegisteredService(context, service);
            WebUtils.putAuthentication(authentication, context);
            WebUtils.putServiceIntoFlowScope(context, RegisteredServiceTestUtils.getService());

            val targetResolver = new DefaultTargetStateResolver(TestMultifactorAuthenticationProvider.ID);
            val transition = new Transition(new DefaultTransitionCriteria(
                new LiteralExpression(TestMultifactorAuthenticationProvider.ID)), targetResolver);
            context.getRootFlow().getGlobalTransitionSet().add(transition);
            WebUtils.putResolvedEventsAsAttribute(context, resolvedEvents);
            val result = compositeResolver.resolve(context);
            assertNotNull(result);
            assertNotNull(MultifactorAuthenticationWebflowUtils.getResolvedMultifactorAuthenticationProviders(context));
            return result;
        }
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