@Test
public void testInsertTagIntoMetricName() {

  Assert.assertEquals("rpc.rpc.client.CallQueueLength",
    PropertyHelper.insertTagInToMetricName("client", "rpc.rpc.CallQueueLength", "metrics/rpc/"));
  Assert.assertEquals("rpc.rpc.client.CallQueueLength",
    PropertyHelper.insertTagInToMetricName("client", "rpc.rpc.CallQueueLength", "metrics/rpc/"));
  Assert.assertEquals("metrics/rpc/client/CallQueueLen",
    PropertyHelper.insertTagInToMetricName("client", "metrics/rpc/CallQueueLen", "metrics/rpc/"));
  Assert.assertEquals("metrics/rpc/client/CallQueueLen",
    PropertyHelper.insertTagInToMetricName("client", "metrics/rpc/CallQueueLen", "metrics/rpc/"));
  Assert.assertEquals("rpcdetailed.rpcdetailed.client.FsyncAvgTime",
    PropertyHelper.insertTagInToMetricName("client", "rpcdetailed.rpcdetailed.FsyncAvgTime", "metrics/rpc/"));
  Assert.assertEquals("metrics/rpcdetailed/client/fsync_avg_time",
    PropertyHelper.insertTagInToMetricName("client", "metrics/rpcdetailed/fsync_avg_time", "metrics/rpc/"));
}