@Test
public void testCloseCircuit(TestContext context){

    Async async = context.async();
    HttpRequest req = new HttpRequest(HttpMethod.PUT, "/playground/circuitBreaker/test", MultiMap.caseInsensitiveMultiMap(), null);
    Mockito.when(ruleToCircuitMapping.getCircuitFromRequestUri(anyString()))
            .thenReturn(new PatternAndCircuitHash(Pattern.compile("/someCircuit"), "someCircuitHash"));
    Mockito.when(queueCircuitBreakerStorage.closeCircuit(any(PatternAndCircuitHash.class)))
            .thenReturn(Future.succeededFuture());
    queueCircuitBreaker.closeCircuit(req).setHandler(event -> {
        context.assertTrue(event.succeeded());
        verify(queueCircuitBreakerStorage, times(1)).closeCircuit(any(PatternAndCircuitHash.class));
        async.complete();
    });
    async.awaitSuccess();
}