@Override
    public TimeLimiter timeLimiter(final String name) {
        return timeLimiter(name, getDefaultConfig(), emptyMap());
    }
@Test
    @SuppressWarnings("unchecked")
    public void timeLimiterPositiveWithSupplier() {
        TimeLimiterRegistry registry = new InMemoryTimeLimiterRegistry(config);
        Supplier<TimeLimiterConfig> timeLimiterConfigSupplier = mock(Supplier.class);
        given(timeLimiterConfigSupplier.get()).willReturn(config);

        TimeLimiter firstTimeLimiter = registry.timeLimiter("test", timeLimiterConfigSupplier);
        verify(timeLimiterConfigSupplier, times(1)).get();
        TimeLimiter sameAsFirst = registry.timeLimiter("test", timeLimiterConfigSupplier);
        verify(timeLimiterConfigSupplier, times(1)).get();
        TimeLimiter anotherLimit = registry.timeLimiter("test1", timeLimiterConfigSupplier);
        verify(timeLimiterConfigSupplier, times(2)).get();

        then(firstTimeLimiter).isEqualTo(sameAsFirst);
        then(firstTimeLimiter).isNotEqualTo(anotherLimit);
    }