@Override
    public Hedge hedge(final String name) {
        return hedge(name, getDefaultConfig(), emptyMap());
    }
@Test
    @SuppressWarnings("unchecked")
    public void hedgePositiveWithSupplier() {
        HedgeRegistry registry = HedgeRegistry.builder().withDefaultConfig(config).build();
        Supplier<HedgeConfig> hedgeConfigSupplier = mock(Supplier.class);
        given(hedgeConfigSupplier.get()).willReturn(config);

        Hedge firstHedge = registry.hedge("test", hedgeConfigSupplier);
        verify(hedgeConfigSupplier, times(1)).get();
        Hedge sameAsFirst = registry.hedge("test", hedgeConfigSupplier);
        verify(hedgeConfigSupplier, times(1)).get();
        Hedge anotherLimit = registry.hedge("test1", hedgeConfigSupplier);
        verify(hedgeConfigSupplier, times(2)).get();

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