@Override
  public Timer timer(String name, TimeUnit unit) {
    return new DefaultTimer(unit);
  }
@Test
  public void timer() {
    MetricsContext metricsContext = new DefaultMetricsContext();
    Timer timer = metricsContext.timer("test", TimeUnit.MICROSECONDS);
    timer.record(10, TimeUnit.MINUTES);
    assertThat(timer.totalDuration()).isEqualTo(Duration.ofMinutes(10L));
  }