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 shouldThrowWhenNoSharedRootNode() {
        Map<String, String> m = new HashMap<>();
        m.put("foo1.bar1", "1");
        m.put("foo2.bar2", "2");
        ConfigNode configNode = PropertiesToNodeConverter.propsToNode(m);
    }