### Question:
MetricsController { public static String meterToKind(Registry registry, Meter meter) { String kind; if (meter instanceof Timer) { kind = "Timer"; } else if (meter instanceof Counter) { kind = "Counter"; } else if (meter instanceof Gauge) { kind = "Gauge"; } else if (meter instanceof DistributionSummary) { kind = "DistributionSummary"; } else { kind = meter.getClass().getSimpleName(); } return kind; }  Predicate<Measurement> getDefaultMeasurementFilter(); @RequestMapping(method = RequestMethod.GET) ApplicationRegistry getMetrics(@RequestParam Map<String, String> filters); static String meterToKind(Registry registry, Meter meter); static final Predicate<Measurement> ALL_MEASUREMENTS_FILTER; }### Answer:
@Test public void testMeterToKind() { DefaultRegistry r = new DefaultRegistry(clock); Assertions.assertEquals( "Counter", MetricsController.meterToKind(r, r.counter(idAXY))); Assertions.assertEquals( "Timer", MetricsController.meterToKind(r, r.timer(idBXY))); Assertions.assertEquals( "TestMeter", MetricsController.meterToKind(r, meterA)); }