@Override
    public void stop() {
        try {
            stopLatch = new CountDownLatch(1);
            echoServer.stop();

            vertx.close(result -> {
                if (result.succeeded()) {
                    System.out.println("**** Shut Vert.x down successfully! ****");
                } else {
                  throw new RuntimeException(result.cause());
                }
                stopLatch.countDown();
            });

            stopLatch.await();
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            resetter.reset(); // Also reset at end to avoid leaving pollution in index.
        }
    }
A Vert.x 3 version of the gateway test server

@author Marc Savy {@literal <msavy@redhat.com>}
gateway/test/src/test/java/io/apiman/gateway/test/junit/vertx3/Vertx3GatewayTestServer.java