@Test
    void verifyOperation() throws Throwable {
        val props = casProperties.getAccountRegistration().getProvisioning().getRest();
        val port = URI.create(props.getUrl()).getPort();
        try (val webServer = new MockWebServer(port, HttpStatus.OK)) {
            webServer.start();
            val registrationRequest = new AccountRegistrationRequest(Map.of("username", "casuser"));
            val results = accountMgmtRegistrationProvisioner.provision(registrationRequest);
            assertTrue(results.isSuccess());
        }
    }
This is {@link RestfulAccountRegistrationProvisionerTests}.

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