@Test
    void testFailNoNameAttribute() {
        Element configRoot = getDocument(new StringReader("<config/>"));
        try {
            new DomConfigPayloadBuilder(null).build(configRoot);
            fail("Expected exception for mismatch between def-name and xml name attribute.");
        } catch (IllegalArgumentException e) {
            assertEquals("The 'config' element must have a 'name' attribute that matches the name of the config definition", 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