### Question:
ConfigLoader { static List<String> parseAsList(String s) { if (s == null || s.trim().isEmpty()) { return Collections.emptyList(); } return Arrays.asList(s.split(",")); } ConfigLoader(); String getValueForProperty(String propertyQualifier); String getValueForProperty(String propertyQualifier, boolean optional); List<String> getValuesForProperty(String propertyQualifier, boolean optional); List<String> getValuesForPropertyList(String propertyQualifier);  }### Answer:
@Test public void testParseAsList() { assertTrue(ConfigLoader.parseAsList(null).isEmpty()); assertTrue(ConfigLoader.parseAsList("").isEmpty()); assertEquals(1, ConfigLoader.parseAsList("OPTIONS").size()); assertEquals("OPTIONS", ConfigLoader.parseAsList("OPTIONS").get(0)); assertEquals(2, ConfigLoader.parseAsList("OPTIONS,GET").size()); assertEquals("OPTIONS", ConfigLoader.parseAsList("OPTIONS,GET").get(0)); assertEquals("GET", ConfigLoader.parseAsList("OPTIONS,GET").get(1)); }