@Test
    public void testDefaultsPayloadMap() {
        ConfigDefinition def = new ConfigDefinition("foo", "namespace1");
        def.addStringDef("mystring");
        def.addStringDef("mystringdef", "foo");
        def.addBoolDef("mybool");
        def.addBoolDef("mybooldef", true);
        def.addIntDef("myint");
        def.addIntDef("myintdef", 1);
        def.addLongDef("mylong");
        def.addLongDef("mylongdef", 11L);
        def.addDoubleDef("mydouble");
        def.addDoubleDef("mydoubledef", 2d);
        EnumDef ed = new EnumDef(new ArrayList<>() {{
            add("a1");
            add("a2");
        }}, null);
        EnumDef eddef = new EnumDef(new ArrayList<>() {{
            add("a11");
            add("a22");
        }}, "a22");
        def.addEnumDef("myenum", ed);
        def.addEnumDef("myenumdef", eddef);
        def.addReferenceDef("myref");
        def.addReferenceDef("myrefdef", "reff");
        def.addFileDef("myfile");
        def.addFileDef("myfiledef");
    }
Unit tests for ConfigDefinition.

@author hmusum
config/src/test/java/com/yahoo/vespa/config/ConfigDefinitionTest.java