@Override
    public void close() {
        stop();
    }
@Test
    public void createWithNullMetricRegistry() {
        ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
        DummyReporter r = null;
        try {
            r = new DummyReporter(null, "example", MetricFilter.ALL, TimeUnit.SECONDS, TimeUnit.MILLISECONDS, executor);
            Assert.fail("NullPointerException must be thrown !!!");
        } catch (NullPointerException e) {
            Assert.assertEquals("registry == null", e.getMessage());
        } finally {
            if (r != null) {
                r.close();
            }
        }
    }