@Override
    public CircuitBreaker circuitBreaker(String name) {
        return circuitBreaker(name, getDefaultConfig());
    }
@Test
    public void testCreateCircuitBreakerWithConfigName() {
        CircuitBreakerRegistry circuitBreakerRegistry = CircuitBreakerRegistry.ofDefaults();
        circuitBreakerRegistry.addConfiguration("testConfig",
            CircuitBreakerConfig.custom().slidingWindowSize(5).build());

        final CircuitBreaker circuitBreaker = circuitBreakerRegistry
            .circuitBreaker("circuitBreaker",
                "testConfig");

        assertThat(circuitBreaker).isNotNull();
        assertThat(circuitBreaker.getCircuitBreakerConfig().getSlidingWindowSize()).isEqualTo(5);
    }