@POST
    @Path("/registry")
    public Uni<Record> register(ServiceRegistration service) {
        return provider.registerService(service);
    }
@Test
    public void testRegister() {
        ServiceRegistration service = createTestService();

        // create register request for service
        RequestSpecification registerRequest = given()
                .body(service)
                .contentType(MediaType.APPLICATION_JSON);

        // send the register request
        Response registerResponse = registerRequest
                .when()
                .post("/service-discovery/registry");

        // verify expected response from register request
        registerResponse.then()
                .statusCode(200)
                .body("registration", notNullValue())
                .body("status", notNullValue())
                .body("name", is(service.getName()))
                .body("type", is(service.getType()))
                .body("location.map.endpoint", is(service.getEndpoint()))
                .body("metadata.map", is(service.getMetadata()));
    }