@PUT
    @Path("/registry/{registrationId}")
    @Produces(MediaType.TEXT_PLAIN)
    public Uni<Boolean> update(@PathParam("registrationId") String registrationId, final Record record) {
        record.setRegistration(registrationId);
        return provider.update(record);
    }
@Test
    public void testUpdate() {
        final ServiceRegistration service = createTestService();

        final Response registerResponse = given()
                .body(service)
                .contentType(MediaType.APPLICATION_JSON)
                .post("/service-discovery/registry");

        final Response getResponse = when()
                .get("service-discovery/service/{name}", service.getName());

        // verify expected response and extract the returned list
        List<Map<String, Object>> results = (List<Map<String, Object>>) getResponse.then()
                .statusCode(200)
                .extract()
                .as(List.class);

        Map<String, Object> record = results.get(0);
        record.put("status", Status.DOWN.toString());

        final Response updateResponse = given()
                .body(record)
                .contentType(MediaType.APPLICATION_JSON)
                .put("/service-discovery/registry/{registrationId}", record.get("registration"));

        updateResponse.then()
                .statusCode(200)
                .body(is(Boolean.TRUE.toString()));

        final Response getResult = given()
                .queryParam("includeOutOfService", true)
                .when()
                .get("service-discovery/service/{name}", service.getName());

        // verify expected response and extract the returned list
        List<Map<String, Object>> updatedResults = (List<Map<String, Object>>) getResult.then()
                .statusCode(200)
                .extract()
                .as(List.class);

        Map<String, Object> updatedRecord = updatedResults.get(0);
        assertEquals(Status.DOWN.toString(), updatedRecord.get("status"), "Updated record does not have a down status");
    }