### Question:
ResourceProperties extends Properties { public final List<String> getList(final String listProperty) { List<String> list = new ArrayList<>(); if (listProperty == null) { return list; } String itemNames = getProperty(listProperty); if (itemNames == null) { return list; } itemNames = itemNames.trim(); if (itemNames.length() == 0) { return list; } list.addAll(Arrays.asList(itemNames.split("\\s*,\\s*"))); return list; } ResourceProperties(); @SuppressFBWarnings( value = "UI_INHERITANCE_UNSAFE_GETRESOURCE", justification = "Not a problem since resourceName should be given" + "relative to root of classpath")  ResourceProperties(final String resourceName); final Map<String, Map<String, String>> getItems(
            final String listProperty); final List<String> getList(final String listProperty); final Map<String, String> getItemMap(final String basePropertyName); final boolean propertyEnabled(final String property);  }### Answer:
@Test public final void testGetList() throws Exception { List<String> itemList = getResourceProperties().getList(LIST_PROP); Assert.assertNotNull(itemList); Assert.assertEquals(itemList.get(0), "item_one"); Assert.assertEquals(itemList.get(1), "item_two"); }
@Test public final void testGetListTrim() throws Exception { List<String> itemList = getResourceProperties() .getList("list.items.spaces"); Assert.assertNotNull(itemList); Assert.assertEquals(itemList.get(0), "item_one"); Assert.assertEquals(itemList.get(1), "item_two"); Assert.assertEquals(itemList.get(2), "item_three"); }