@Test
public void testValidContentShouldBeStoredInStorage(TestContext context){

    Async async = context.async();
    QueueCircuitBreakerConfigurationResourceManager manager = new QueueCircuitBreakerConfigurationResourceManager(vertx, storage, CONFIGURATION_URI);
    final DummyHttpServerResponse response = new DummyHttpServerResponse();
    class UpdateConfigResourceWithValidDataRequest extends ConfigResourcePUTRequest {
        @Override
        public HttpServerRequest bodyHandler(Handler<Buffer> bodyHandler) {
            bodyHandler.handle(Buffer.buffer(VALID_CONFIG_RESOURCE));
            return this;
        }
        @Override
        public HttpServerResponse response() {
            return response;
        }
    }
    storage.get(CONFIGURATION_URI, result -> {
        context.assertEquals(INITIAL_CONFIG_RESOURCE, result.toString());
        context.assertTrue(manager.handleConfigurationResource(new UpdateConfigResourceWithValidDataRequest()));
        storage.get(CONFIGURATION_URI, updatedResult -> {
            context.assertEquals(VALID_CONFIG_RESOURCE, updatedResult.toString());
            async.complete();
        });
    });
}