@Test
        void verifyOperations() 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);
            MultifactorAuthenticationWebflowUtils.putMultifactorAuthenticationProvider(context, dummyProvider);

            val transition = mock(Transition.class);
            when(transition.getId()).thenReturn(CasWebflowConstants.TRANSITION_ID_BYPASS);
            context.setCurrentTransition(transition);
            var event = mfaBypassAction.execute(context);
            assertEquals(CasWebflowConstants.TRANSITION_ID_YES, event.getId());
            
            when(transition.getId()).thenReturn(CasWebflowConstants.TRANSITION_ID_SUCCESS);
            context.setCurrentTransition(transition);
            event = mfaBypassAction.execute(context);
            assertEquals(CasWebflowConstants.TRANSITION_ID_YES, event.getId());
        }
This is {@link MultifactorAuthenticationBypassActionTests}.

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