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 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());
        }
    }