@Override
    public ScheduledExecutorService newScheduledThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory) {
        ScheduledExecutorService executorService = threadPoolFactory.newScheduledThreadPool(profile, threadFactory);
        String executorServiceName = name(profile.getId());
        return new TimedScheduledExecutorService(meterRegistry, executorService, executorServiceName, Tags.empty());
    }
@Test
    public void testNewScheduledThreadPool() {
        final ScheduledExecutorService scheduledExecutorService
                = instrumentedThreadPoolFactory.newScheduledThreadPool(profile, threadFactory);

        assertThat(scheduledExecutorService, is(notNullValue()));
        assertThat(scheduledExecutorService, is(instanceOf(TimedExecutorService.class)));

        Tags tags = Tags.of("name", METRICS_NAME + "1");
        inOrder.verify(registry, times(1)).timer("executor", tags);
    }