@BeforeEach
    void setup() {
        this.accountRegistrationService = new DefaultAccountRegistrationService(
            mock(AccountRegistrationPropertyLoader.class),
            casProperties, CipherExecutor.noOpOfSerializableToString(),
            AccountRegistrationUsernameBuilder.asDefault(),
            mock(AccountRegistrationProvisioner.class),
            AccountRegistrationRequestValidator.noOp());

        val request = new MockHttpServletRequest();
        request.setRemoteAddr("1.2.3.4");
        request.setLocalAddr("1.2.3.4");
        ClientInfoHolder.setClientInfo(ClientInfo.from(request));
    }
This is {@link DefaultAccountRegistrationServiceTests}.

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