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

        context.setRemoteAddr("127.0.0.1");
        context.setLocalAddr("127.0.0.1");
        context.setClientInfo();

        context.setParameter("username", "casuser");
        context.setParameter("email", "cas@example.org");
        context.setParameter("phone", "3477465432");

        val results = submitAccountRegistrationAction.execute(context);
        val token = new URIBuilder(results.getAttributes().get("result", String.class)).getQueryParams().getFirst().getValue();
        context.setParameter(AccountRegistrationUtils.REQUEST_PARAMETER_ACCOUNT_REGISTRATION_ACTIVATION_TOKEN, token);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, validateAction.execute(context).getId());
    }
This is {@link ValidateAccountRegistrationTokenActionTests}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-account-mgmt/src/test/java/org/apereo/cas/acct/webflow/ValidateAccountRegistrationTokenActionTests.java