@@ -0,0 +1,1312 @@
+package com.progressoft.brix.domino.test.api;%0A%0Aimport com.progressoft.brix.domino.api.shared.request.ServerRequest;%0Aimport com.progressoft.brix.domino.api.shared.request.ServerResponse;%0Aimport io.vertx.core.Vertx;%0Aimport io.vertx.core.json.Json;%0Aimport io.vertx.ext.unit.TestContext;%0Aimport io.vertx.ext.web.client.WebClient;%0A%0Apublic class RequestTestClient%3CR extends ServerRequest, S extends ServerResponse%3E %7B%0A%0A    private final TestContext context;%0A    private final int actualPort;%0A    private final WebClient webClient;%0A    private final Class%3CS%3E responseClass;%0A    private final String path;%0A%0A    public RequestTestClient(Vertx vertx, TestContext context, int actualPort, String path, Class%3CS%3E responseClass) %7B%0A        this.context = context;%0A        this.actualPort = actualPort;%0A        this.path = path;%0A        this.responseClass = responseClass;%0A        webClient = WebClient.create(vertx);%0A    %7D%0A%0A    public void executeRequest(R request, ResponseHandler%3CS%3E handler) %7B%0A        webClient.post(actualPort, %22localhost%22, %22/static/%22 + path).sendJson(request, context.asyncAssertSuccess(response -%3E %7B%0A            handler.onResponseReceived(Json.decodeValue(response.body(), responseClass));%0A        %7D));%0A    %7D%0A%0A%0A    public interface ResponseHandler%3CS%3E %7B%0A        void onResponseReceived(S response);%0A    %7D%0A%7D%0A

implement request test client