Names { public static String name(Method method) { final Class klass = method.getDeclaringClass(); return MetricRegistry.name(klass, method.getName()); } private  Names(); static String name(Method method);  }
@Test public void testGetMethodName() throws Exception { final Method[] methods = NamesTest.class.getMethods(); final Method method = methods[0]; final String name = Names.name(method); assertEquals("com.sproutsocial.metrics.NamesTest.testGetMethodName", name); }