}
@Test
public void testCloseHooksCalled() throws Exception {
AtomicInteger closedCount = new AtomicInteger();
Closeable myCloseable1 = completionHandler -> {
closedCount.incrementAndGet();
completionHandler.handle(Future.completedFuture());
};
Closeable myCloseable2 = completionHandler -> {
closedCount.incrementAndGet();
completionHandler.handle(Future.completedFuture());
};
MyAsyncVerticle verticle = new MyAsyncVerticle(f-> {
ContextImpl ctx = (ContextImpl)vertx.context();