### Question:
ResourceProperties extends Properties { public final Map<String, String> getItemMap(final String basePropertyName) { Map<String, String> values = new HashMap<>(); if (basePropertyName == null) { return values; } for (String propertyName : stringPropertyNames()) { if (propertyName.startsWith(basePropertyName)) { values.put( propertyName.replaceAll(basePropertyName + ".", ""), getProperty(propertyName) ); } } return values; } 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 testGetItemMapNullParameter() throws Exception { Assert.assertEquals( getResourceProperties().getItemMap(null), EMPTY_ITEM_MAP ); }
@Test public final void testGetItemMapNonexistentParameter() throws Exception { Assert.assertEquals( getResourceProperties().getItemMap("list.items.fake_item"), EMPTY_ITEM_MAP ); }
@Test public final void testGetItemMap() throws Exception { Map<String, String> itemMap = getResourceProperties(). getItemMap("list.items.item_one"); Assert.assertNotNull(itemMap); Assert.assertEquals(itemMap.get("size"), "small"); Assert.assertEquals(itemMap.get("priority"), "high"); }