public static InstrumentedScheduledExecutorService newSingleThreadScheduledExecutor(
            MetricRegistry registry, String name) {
        return new InstrumentedScheduledExecutorService
                (Executors.newSingleThreadScheduledExecutor(), registry, name);
    }
@Test
    public void testNewSingleThreadScheduledExecutorWithName() throws Exception {
        final ScheduledExecutorService executorService = InstrumentedExecutors.newSingleThreadScheduledExecutor(registry, "xs");
        executorService.schedule(new NoopRunnable(), 0, TimeUnit.SECONDS);

        assertThat(registry.meter("xs.scheduled.once").getCount()).isEqualTo(1L);
        executorService.shutdown();
    }