public void close()
    {
        if (delegateResolver instanceof AutoCloseable)
        {
            CloseHelper.close((AutoCloseable)delegateResolver);
        }
    }
@Test
    void closeIsANoOpIfDelegateResolverIsNotCloseable()
    {
        final NameResolver delegateResolver = mock(NameResolver.class);
        final NanoClock clock = mock(NanoClock.class);
        final DutyCycleTracker maxTime = mock(DutyCycleTracker.class);
        final TimeTrackingNameResolver resolver = new TimeTrackingNameResolver(delegateResolver, clock, maxTime);

        resolver.close();

        verifyNoInteractions(delegateResolver, clock, maxTime);
    }