@Before
    public void before() throws InterruptedException {
        final CountDownLatch latch = new CountDownLatch(1);
        client = new OkHttpClient();

        final Map<String, String> promConfig = new HashMap<>();
        promConfig.put("port", "9876");
        this.prometheusMetrics = new PrometheusScrapeMetrics(promConfig, result -> latch.countDown());
        prometheusMetrics.setComponentRegistry(null);

        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