MetricsServletContextListener extends MetricsServlet.ContextListener { @Override protected MetricRegistry getMetricRegistry() { return registry; }    }
@Test public void getMetricRegistry() throws Exception { assertNotNull("Metric registry is NULL.", listener.getMetricRegistry()); }