AbstractPropertyProvider extends BaseProvider implements PropertyProvider { public Map<String, Map<String, PropertyInfo>> getComponentMetrics() { return componentMetrics; } AbstractPropertyProvider(Map<String, Map<String, PropertyInfo>> componentMetrics); Map<String, Map<String, PropertyInfo>> getComponentMetrics();  }
@Test public void testGetComponentMetrics() { Map<String, Map<String, PropertyInfo>> componentMetrics = PropertyHelper.getMetricPropertyIds(Resource.Type.HostComponent); AbstractPropertyProvider provider = new TestPropertyProvider(componentMetrics); Assert.assertEquals(componentMetrics, provider.getComponentMetrics()); }