@Test
        void verifyResumeEmailRegistration() throws Throwable {
            val requestContext = buildRequestContextFor("casuser", null);
            requestContext.setCurrentEvent(new EventFactorySupport().event(this,
                CasWebflowConstants.TRANSITION_ID_RESUME, new LocalAttributeMap<>(
                    Map.of(CasSimpleMultifactorVerifyEmailAction.TOKEN_PROPERTY_EMAIL_TO_REGISTER, "casuser@example.org"))));
            val event = mfaSimpleMultifactorSendTokenAction.execute(requestContext);
            assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, event.getId());
            val attributes = event.getAttributes();
            assertTrue(attributes.contains("token"));
        }
This is {@link CasSimpleMultifactorSendTokenActionTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-simple-mfa/src/test/java/org/apereo/cas/mfa/simple/web/flow/CasSimpleMultifactorSendTokenActionTests.java