Metrics { public Histogram getHistogram(String name) { return factory.getHistogram(base, name); } Metrics(MetricsFactory factory, String prefix, Class<?> clazz);  Metrics(MetricsFactory factory, Class<?> clazz); Timer getTimer(String name); Counter getCounter(String name); Histogram getHistogram(String name); Meter getMeter(String name); static final String SEP; }
@Test public void testGetHistogram() { metrics.getHistogram("histogram"); verify(factory).getHistogram(anyString(), eq("histogram")); }