@Override public String eventType() { return t.eventType(); }
@Test public void reportsTimerValues() throws Exception { final Timer timer = mock(Timer.class); when(timer.eventType()).thenReturn("events"); when(timer.durationUnit()).thenReturn(TimeUnit.MILLISECONDS); when(timer.rateUnit()).thenReturn(TimeUnit.SECONDS);