@Bean
        public AccountRegistrationProvisioner accountMgmtRegistrationProvisioner() throws Throwable {
            val response = new AccountRegistrationResponse();
            response.putProperty("success", true);
            val provisioner = mock(AccountRegistrationProvisioner.class);
            when(provisioner.provision(any())).thenReturn(response);
            return provisioner;
        }
This is {@link FinalizeAccountRegistrationActionTests}.

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