@Override
    public Thread newThread(Runnable target) {
        return delegate.newThread(target);
    }
@Test
    void requireThatThreadFactoryCallsProvider() {
        MetricConsumerProvider provider = Mockito.mock(MetricConsumerProvider.class);
        ThreadFactory factory = new ContainerThreadFactory(provider);
        factory.newThread(Mockito.mock(Runnable.class));
        Mockito.verify(provider, Mockito.times(1)).newInstance();
        factory.newThread(Mockito.mock(Runnable.class));
        Mockito.verify(provider, Mockito.times(2)).newInstance();
    }