@Test
    public void simpleConfig() {
        String jsonStr = "{\"metrics\": {\n" +
                "    \"class\": \"io.apiman.gateway.engine.prometheus.PrometheusScrapeMetrics\",\n" +
                "    \"config\": {\n" +
                "      \"port\": 8083\n" +
                "    }\n" +
                "  }}";

        JsonObject jsonObject = new JsonObject(jsonStr);

        @SuppressWarnings("serial")
        Map<String, String> expected = new LinkedHashMap<String, String>(){{
            put("port", "8083");
        }};

        VertxEngineConfig config = new VertxEngineConfig(jsonObject);
        Assert.assertThat(config.getMetricsConfig(), is(expected));
    }
Test config loading

@author Marc Savy {@literal <msavy@redhat.com>}
gateway/platforms/vertx3/vertx3/src/test/java/io/apiman/gateway/platforms/vertx3/common/config/ConfigTest.java