@Test
    void testNameParsingInvalidName() {
        assertThrows(IllegalArgumentException.class, () -> {
            Element configRoot = getDocument(new StringReader("<config name=\" function-test\" version=\"1\">" +
                    "<int_val>1</int_val> +" +
                    "</config>"));
            DomConfigPayloadBuilder.parseConfigName(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