@Test
    void verifyOperation() {
        val request = getHttpRequestForEndpoint(OidcConstants.REGISTRATION_URL);
        val response = new MockHttpServletResponse();

        try (val webServer = new MockWebServer(org.springframework.http.HttpStatus.OK)) {
            webServer.responseBodyJson(List.of("https://client.example.org/callback", "https://client.example.org/callback2"));
            webServer.start();

            val registrationReq = """
    {
        "application_type": "web",
        "default_acr_values": ["mfa-duo","mfa-gauth"],
        "redirect_uris": ["https://client.example.org/callback","https://client.example.org/callback2"],
        "client_name": "My Example",
        "client_name#ja-Japan-JP": "Japanese",
        "logo_uri": "https://client.example.org/logo.png",
        "policy_uri": "https://client.example.org/policy",
        "tos_uri": "https://client.example.org/tos",
        "subject_type": "pairwise",
        "sector_identifier_uri": "http://localhost:%s",
        "token_endpoint_auth_method": "client_secret_basic",
        "jwks_uri": "https://client.example.org/my_public_keys.jwks",
        "id_token_signed_response_alg": "RS256",
        "id_token_encrypted_response_alg": "RSA1_5",
        "id_token_encrypted_response_enc": "A128CBC-HS256",
        "userinfo_encrypted_response_alg": "RSA1_5",
        "userinfo_encrypted_response_enc": "A128CBC-HS256",
        "contacts": ["ve7jtb@example.org", "mary@example.org"]
    }
    """.formatted(webServer.getPort());
            val responseEntity = (ResponseEntity<OidcClientRegistrationResponse>) controller.handleRequestInternal(registrationReq, request, response);
            assertEquals(HttpStatus.SC_CREATED, responseEntity.getStatusCode().value());
            assertTrue(responseEntity.getBody().getClientIdIssuedAt() > 0);
        }
    }
This is {@link OidcDynamicClientRegistrationEndpointControllerTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/controllers/dynareg/OidcDynamicClientRegistrationEndpointControllerTests.java