public void shutdown() {
        // we want to immediately terminate; we don't want to wait till pending tasks have completed.
        scheduler.shutdownNow();
    }
@Test
    public void shutdown() {
        metricsRegistry.shutdown();
    }