Map<String, Map<String, PropertyInfo>> metrics = PropertyHelper.getJMXPropertyIds(Resource.Type.HostComponent);
Map<String, PropertyInfo> componentMetrics = metrics.get("HISTORYSERVER");
Assert.assertNull(componentMetrics);
componentMetrics = metrics.get("NAMENODE");
Assert.assertNotNull(componentMetrics);
PropertyInfo info = componentMetrics.get("metrics/jvm/memHeapUsedM");
Assert.assertNotNull(info);
Assert.assertEquals("Hadoop:service=NameNode,name=jvm.memHeapUsedM", info.getPropertyId());
}