@Test
    void put_to_nested_map() {
        Reader xmlConfig = new StringReader("<?xml version=\"1.0\" encoding=\"utf-8\" ?>" +
                "<config name=\"test.foobar\">" +
                "  <nestedmap>" +
                "    <item key=\"bar\">" +
                "      <inner>" +
                "        <item key=\"bar1\">30</item>" +
                "        <item key=\"bar2\">40</item>" +
                "      </inner>" +
                "    </item>" +
                "    <item key=\"foo\">" +
                "      <inner>" +
                "        <item key=\"foo1\">10</item>" +
                "        <item key=\"foo2\">20</item>" +
                "      </inner>" +
                "    </item>" +
                "  </nestedmap>" +
                "</config>");
        assertPayload("{\"nestedmap\":{" +
                "\"bar\":{\"inner\":{\"bar1\":\"30\",\"bar2\":\"40\"}}," +
                "\"foo\":{\"inner\":{\"foo1\":\"10\",\"foo2\":\"20\"}}}}", getDocument(xmlConfig));
    }
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