### Question:
PropertySplitter { public Collection<String> list(String property) { if (property == null) { return new ArrayList<>(); } return this.list(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 testList() { Assert.assertEquals(0, propertySplitter.list(null).size()); Assert.assertEquals(0, propertySplitter.list("").size()); Assert.assertEquals(4, propertySplitter.list("VALUE1,VALUE2,VALUE3,VALUE4").size()); Assert.assertTrue(propertySplitter.list("VALUE1,VALUE2,VALUE3,VALUE4").contains("VALUE1")); Assert.assertTrue(propertySplitter.list("VALUE1,VALUE2,VALUE3,VALUE4").contains("VALUE2")); Assert.assertTrue(propertySplitter.list("VALUE1,VALUE2,VALUE3,VALUE4").contains("VALUE3")); Assert.assertTrue(propertySplitter.list("VALUE1,VALUE2,VALUE3,VALUE4").contains("VALUE4")); }