public ConfigPayloadBuilder build(Element configE) {
        parseConfigName(configE);

        ConfigPayloadBuilder payloadBuilder = new ConfigPayloadBuilder(configDefinition);
        for (Element child : XML.getChildren(configE)) {
            parseElement(child, payloadBuilder, null);
        }
        return payloadBuilder;
    }
@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());
        }
    }