@Test
    public void simpleNestedConfig() {
        String jsonStr = "{\n" +
                "    \"metrics\": {\n" +
                "        \"class\": \"xyz\",\n" +
                "        \"config\": {\n" +
                "            \"port\": \"ankh morpork\",\n" +
                "            \"favourite\": {\n" +
                "                \"food\": \"prime rat fillet\",\n" +
                "                \"drink\": \"quirmian cognac\"\n" +
                "            },\n" +
                "            \"races\": [\"human\",\"goblin\",\"dwarf\",\"elf\",\"gnome\",\n" +
                "                \"troll\",\"golem\",\"vampire\",\"werewolf\",\"zombie\"]\n" +
                "            }\n" +
                "        }\n" +
                "    }";

        JsonObject jsonObject = new JsonObject(jsonStr);

        @SuppressWarnings("serial")
        Map<String, String> expected = new LinkedHashMap<String, String>(){{
            put("port", "ankh morpork");
            put("favourite.food", "prime rat fillet");
            put("favourite.drink", "quirmian cognac");
            put("races", "human,goblin,dwarf,elf,gnome,troll,golem,vampire,werewolf,zombie");
        }};

        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