@Test
    void testFunctionTest_DefaultValues() throws FileNotFoundException {
        Element configRoot = getDocument(new FileReader("src/test/cfg/admin/userconfigs/functiontest-defaultvalues.xml"));
        String expected = ""
                + "{"
                + "\"bool_val\":\"false\","
                + "\"int_val\":\"5\","
                + "\"long_val\":\"1234567890123\","
                + "\"double_val\":\"41.23\","
                + "\"string_val\":\"foo\","
                + "\"enum_val\":\"FOOBAR\","
                + "\"refval\":\":parent:\","
                + "\"fileVal\":\"vespa.log\","
                + "\"basicStruct\":{\"bar\":\"3\",\"intArr\":[\"10\"]},"
                + "\"rootStruct\":{\"inner0\":{\"index\":\"11\"},\"inner1\":{\"index\":\"12\"},"
                + "\"innerArr\":[{\"stringVal\":\"deep\"}]},"
                + "\"boolarr\":[\"false\"],"
                + "\"doublearr\":[\"2344\",\"123\"],"
                + "\"stringarr\":[\"bar\"],"
                + "\"enumarr\":[\"VALUES\"],"
                + "\"myarray\":[{\"refval\":\":parent:\",\"fileVal\":\"command.com\",\"myStruct\":{\"a\":\"1\"},\"stringval\":[\"baah\",\"yikes\"],\"anotherarray\":[{\"foo\":\"7\"}]},{\"refval\":\":parent:\",\"fileVal\":\"display.sys\",\"myStruct\":{\"a\":\"-1\"},\"anotherarray\":[{\"foo\":\"1\"},{\"foo\":\"2\"}]}]"
                + "}";
        assertPayload(expected, configRoot);
    }
Tests for the {@link com.yahoo.vespa.model.builder.xml.dom.DomConfigPayloadBuilder} class.

@author gjoranv
@author Ulf Lilleengen
config-model/src/test/java/com/yahoo/vespa/model/builder/xml/dom/DomConfigPayloadBuilderTest.java