static ConfigNode propsToNode(Map<String, String> properties) {
        String rootNode = findRootNode(properties);

        ConfigNode root = new ConfigNode(rootNode);
        for (Map.Entry<String, String> e : properties.entrySet()) {
            parseEntry(e.getKey().replaceFirst(rootNode + ".", ""), e.getValue(), root);
        }
        return root;
    }
@Test(expected = InvalidConfigurationException.class)
    public void shouldThrowWhenParsingEmptyMap() {
        ConfigNode configNode = PropertiesToNodeConverter.propsToNode(Collections.emptyMap());
    }