@Test
        void verifyEmailRegistration() throws Throwable {
            val requestContext = buildRequestContextFor("casuser", null);
            val event = mfaSimpleMultifactorSendTokenAction.execute(requestContext);
            assertEquals(CasWebflowConstants.TRANSITION_ID_REGISTER, event.getId());
            val attributes = event.getAttributes();
            assertTrue(attributes.contains("principal"));
            assertTrue(attributes.contains("authentication"));
            assertTrue(attributes.contains(CasSimpleMultifactorSendTokenAction.EVENT_ATTR_ALLOW_REGISTER_EMAIL));
        }
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