@Test
public void testGetQueueCircuitState(TestContext context){

    Async async = context.async();
    PatternAndCircuitHash patternAndCircuitHash = buildPatternAndCircuitHash("/someCircuit", "someCircuitHash");
    storage.getQueueCircuitState(patternAndCircuitHash).setHandler(event -> {
        context.assertEquals(CLOSED, event.result());
        writeQueueCircuitStateToDatabase("someCircuitHash", HALF_OPEN);
        storage.getQueueCircuitState(patternAndCircuitHash).setHandler(event1 -> {
            context.assertEquals(HALF_OPEN, event1.result());
            async.complete();
        });
    });
}