### Question:
ResourceProperties extends Properties { public final Map<String, Map<String, String>> getItems( final String listProperty) { Map<String, Map<String, String>> itemProperties = new HashMap<>(); for (String itemName : getList(listProperty)) { itemProperties.put( itemName, getItemMap(String.format("%s.%s", listProperty, itemName)) ); } return itemProperties; } 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 testGetItemsNullParameter() throws Exception { Assert.assertEquals( getResourceProperties().getItems(null), EMPTY_ITEM_MAP ); }
@Test public final void testGetItemsNonexistentParameter() throws Exception { Assert.assertEquals( getResourceProperties().getItems("list.fake_items"), EMPTY_ITEM_MAP ); }
@Test public final void testGetItemsEmptyParameter() throws Exception { Assert.assertEquals( getResourceProperties().getItems("list.empty_items"), EMPTY_ITEM_MAP ); }
@Test public final void testGetItems() throws Exception { Map<String, Map<String, String>> items = getResourceProperties() .getItems(LIST_PROP); Assert.assertNotNull(items); Assert.assertEquals(items.get("item_one").get("size"), "small"); Assert.assertEquals(items.get("item_one").get("priority"), "high"); Assert.assertEquals(items.get("item_two").get("size"), "large"); Assert.assertEquals(items.get("item_two").get("priority"), "low"); }