@Test
public void testSplitNames() throws Exception {

    Map<String, Set<String>> result = PropertiesExt.splitNames(asList("top1", "top2.nested2"), 1);
    assertThat(result).containsEntry("top1", null);
    assertThat(result).containsEntry("top2", asSet("nested2"));
}