### Question:
PropertySplitter { public Map<String, String> map(String property) { if (property == null) { return new HashMap<>(); } return this.map(property, ","); }  Map<String, String> map(String property); Map<String, Collection<String>> mapOfList(String property); Collection<String> list(String property); Collection<Collection<String>> groupedList(String property);  }### Answer:
@Test public void testMap() { Assert.assertEquals(0, propertySplitter.map(null).size()); Assert.assertEquals(0, propertySplitter.map("").size()); Assert.assertEquals(2, propertySplitter.map("KEY1:VALUE1,KEY2:VALUE2").size()); Assert.assertEquals("VALUE1", propertySplitter.map("KEY1:VALUE1,KEY2:VALUE2").get("KEY1")); Assert.assertEquals("VALUE2", propertySplitter.map("KEY1:VALUE1,KEY2:VALUE2").get("KEY2")); }