@Test
public void testMetricName() {

    String metric = "_metric_";
    String indexerName = "_index_name_";
    MetricName metricName = IndexerMetricsUtil.metricName(getClass(), metric, indexerName);
    
    assertEquals("hbaseindexer", metricName.getGroup());
    assertEquals("IndexerMetricsUtilTest", metricName.getType());
    assertEquals(metric, metricName.getName());
    assertEquals(indexerName, metricName.getScope());
}