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

        val tgt = new MockTicketGrantingTicket("casuser");
        WebUtils.putTicketGrantingTicketInScopes(context, tgt);
        ticketRegistry.addTicket(tgt);

        val registeredService = RegisteredServiceTestUtils.getRegisteredService(Map.of());
        val multifactorPolicy = new DefaultRegisteredServiceMultifactorPolicy();
        registeredService.setMultifactorAuthenticationPolicy(multifactorPolicy);
        servicesManager.save(registeredService);
        WebUtils.putRegisteredService(context, registeredService);

        val targetResolver = new DefaultTargetStateResolver(CasWebflowConstants.STATE_ID_MFA_COMPOSITE);
        val transition = new Transition(new DefaultTransitionCriteria(
            new LiteralExpression(CasWebflowConstants.STATE_ID_MFA_COMPOSITE)), targetResolver);
        context.getRootFlow().getGlobalTransitionSet().add(transition);

        assertEquals(CasWebflowConstants.STATE_ID_MFA_COMPOSITE, resolver.resolveSingle(context).getId());
    }
This is {@link RankedMultifactorAuthenticationProviderWebflowEventResolverWithCompositeTests}.

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