@Test
    void testFailWrongTagName() {
        Element configRoot = getDocument(new StringReader("<configs name=\"foo\"/>"));
        try {
            new DomConfigPayloadBuilder(null).build(configRoot);
            fail("Expected exception for wrong tag name.");
        } catch (IllegalArgumentException e) {
            assertEquals("The root element must be 'config', but was 'configs'", e.getMessage());
        }
    }
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