* ........
* </EXTRA_DATA>
* </METRIC>
*/
public void testMetricTag() {
Metric metric = ((((gridConfiguration.get(0)).getHosts()).get(0)).getMetrics()).get(0);
assertEquals("disk_free", metric.getName());
assertEquals("307.790", metric.getValue());
assertEquals("double", metric.getType());
assertEquals("GB", metric.getUnits());
assertEquals("143", metric.getTn());
assertEquals("180", metric.getTmax());
assertEquals("0", metric.getDmax());
assertEquals("both", metric.getSlope());
assertEquals("gmond", metric.getSource());
//extra data of the metric
HashMap<String, String> extraData = metric.getExtraData();
assertEquals("disk", extraData.get(GangliaMetKeys.GROUP));
assertEquals("Total free disk space", extraData.get(GangliaMetKeys.DESC));
assertEquals("Disk Space Available", extraData.get(GangliaMetKeys.TITLE));
}