Vertx vertx1 = startVertx();
Vertx vertx2 = startVertx();
DeploymentOptions options = new DeploymentOptions().setHa(true);
JsonObject config = new JsonObject().put("foo", "bar");
options.setConfig(config);
vertx2.deployVerticle("java:" + HAVerticle1.class.getName(), options, ar -> {
assertTrue(ar.succeeded());
});
waitUntil(() -> vertx2.deployments().size() == 1);
((VertxInternal)vertx1).failoverCompleteHandler(succeeded -> {
fail("Should not be called");