@Test
    void verifyAllowedOperation() {
        val commonProfile = new CommonProfile();
        commonProfile.setClientName("CasClient");
        commonProfile.setId("testuser");
        val client = new CasClient(new CasConfiguration("http://cas.example.org"));

        try (val webServer = new MockWebServer(9192,
            new ByteArrayResource(StringUtils.EMPTY.getBytes(StandardCharsets.UTF_8), "Output"), HttpStatus.OK)) {
            webServer.start();

            val props = new RestEndpointProperties();
            props.setUrl("http://localhost:9192");
            val service = new RestfulDelegatedClientUserProfileProvisioner(props);
            service.execute(CoreAuthenticationTestUtils.getPrincipal(), commonProfile, client,
                CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword());
        }
    }
This is {@link RestfulDelegatedClientUserProfileProvisionerTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-pac4j-core/src/test/java/org/apereo/cas/authentication/principal/provision/RestfulDelegatedClientUserProfileProvisionerTests.java