@Test
    void verifyUpdateOperation() throws Throwable {
        val request = getHttpRequestForEndpoint(OidcConstants.CLIENT_CONFIGURATION_URL);
        val response = new MockHttpServletResponse();
        val clientId = UUID.randomUUID().toString();
        var service = getOidcRegisteredService(clientId);
        val clientSecretExpiration = ZonedDateTime.now(ZoneOffset.UTC).minusDays(1).toEpochSecond();
        service.setClientSecretExpiration(clientSecretExpiration);
        servicesManager.save(service);

        val jsonBody = """
            {"redirect_uris": ["https://apereo.github.io"],
            "client_name": "Apereo Blog",
            "contacts": ["cas@example.org"],
            "grant_types": ["client_credentials"],
            "introspection_signed_response_alg": "RS256",
            "introspection_encrypted_response_alg": "RSA1_5",
            "introspection_encrypted_response_enc": "A128CBC-HS256"
            }""";
        val responseEntity = controller.handleUpdates(clientId, jsonBody, request, response);
        assertEquals(HttpStatus.SC_OK, responseEntity.getStatusCode().value());
        assertNotNull(responseEntity.getBody());
        service = servicesManager.findServiceBy(service.getId(), OidcRegisteredService.class);
        assertNotEquals(service.getClientSecretExpiration(), clientSecretExpiration);
    }
This is {@link OidcClientConfigurationEndpointControllerTests}.

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