public void testTimer() throws Exception {
SharedMetricRegistries.clear(); //<1>
MockApplication<File> application = application(InjectorProvider.GUICE, "examples.metrics");//<2>
application.init();
MockClient client = application.client();
MockViewBridge view = client.render(); //<3>
assertEquals("ok", view.assertStringResponse());
assertEquals(Collections.singleton("examples.metrics"), SharedMetricRegistries.names()); //<4>
MetricRegistry registry = SharedMetricRegistries.getOrCreate("examples.metrics");
Timer timer = registry.getTimers().get("juzu.responses"); //<5>
assertEquals(1, timer.getCount());
Meter meter = registry.getMeters().get("custom"); //<6>