@Test
public void validateCircuitBreakerNotConfigured() {

    int MIN_NUM_CALLS = 4;
    RestClient client =
            RestClientFactoryBuilder.builder()
                    .build()
                    .create(null, null, ClientConfiguration.builder().build());
    MultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();
    headers.putSingle(BmcException.OPC_REQUEST_ID_HEADER, "123");
    BmcRequest request = new BmcRequest();
    request.setInvocationCallback(
            new Consumer<Invocation.Builder>() {
                @Override
                public void accept(Invocation.Builder builder) {
                    builder.headers(headers);
                }
            });
    Response response503 = mock(Response.class);
    Mockito.when(response503.getStatus()).thenReturn(503);
    WrappedInvocationBuilder wib = Mockito.mock(WrappedInvocationBuilder.class);
    Mockito.when(wib.get()).thenReturn(response503);
    Mockito.when(wib.getHeaders()).thenReturn(headers);
    for (int i = 0; i < MIN_NUM_CALLS + 2; i++) {
        try {
            client.get(wib, request);
        } catch (BmcException e) {
            fail("The circuit-breaker should be disabled");
        }
    }
}