@DeleteMapping(path = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
            public ResponseEntity delete(@PathVariable(name = "id") final Long id) {
                val service = serviceRegistry.findServiceById(id);
                serviceRegistry.delete(service);
                return ResponseEntity.ok().build();
            }
This is {@link RestfulServiceRegistryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-rest-service-registry/src/test/java/org/apereo/cas/services/RestfulServiceRegistryTests.java