MetricsTimeVaryingRate metric = new MetricsTimeVaryingRate("test", mr);
metric.inc(1, 10);
MetricsContext context = MetricsUtil.getContext("test");
MetricsRecord metricsRecord = MetricsUtil.createRecord(context, "test");
metric.pushMetric(metricsRecord);
assertEquals(10, metric.getMaxTime());
}
}