public static InstrumentedExecutorService newSingleThreadExecutor(MetricRegistry registry, String name) {
        return new InstrumentedExecutorService(Executors.newSingleThreadExecutor(), registry, name);
    }
@Test
    public void testNewSingleThreadExecutorWithThreadFactoryAndName() throws Exception {
        final ExecutorService executorService = InstrumentedExecutors.newSingleThreadExecutor(defaultThreadFactory, registry, "xs");
        executorService.submit(new NoopRunnable());

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