NameUtils { static String toMetricName(Id id) { return CommonUtil.toMetricName(id); } private  NameUtils();   }
@Test public void testMetricname() { String name = NameUtils.toMetricName(new DefaultRegistry(Clock.SYSTEM).createId("name") .withTag("k", "v")); System.out.println(name); Assert.assertEquals("name.k-v", name); }