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

            val targetResolver = new DefaultTargetStateResolver(TestMultifactorAuthenticationProvider.ID);
            val transition = new Transition(new DefaultTransitionCriteria(
                new LiteralExpression(TestMultifactorAuthenticationProvider.ID)), targetResolver);
            context.getRootFlow().getGlobalTransitionSet().add(transition);
            
            val authn = RegisteredServiceTestUtils.getAuthentication(UUID.randomUUID().toString());
            WebUtils.putAuthentication(authn, context);
            context.setParameter(casProperties.getAuthn().getMfa().getTriggers().getHttp().getRequestParameter(),
                TestMultifactorAuthenticationProvider.ID);
            val event = initialAuthenticationAttemptWebflowEventResolver.resolveSingle(context);
            assertEquals(TestMultifactorAuthenticationProvider.ID, event.getId());
        }
This is {@link DefaultCasDelegatingWebflowEventResolverTests}.

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