@After
    public void after() throws InterruptedException {
        final CountDownLatch latch = new CountDownLatch(1);

        prometheusMetrics.close(result -> {
            if (result.failed()) throw new RuntimeException(result.cause());
            latch.countDown();
        });

        latch.await();
    }
Prometheus scrape metrics tests.

@author Marc Savy {@literal <msavy@redhat.com>}
gateway/engine/prometheus/src/test/java/io/apiman/gateway/engine/prometheus/BasicMetricsTest.java