TestVerticle verticle = new TestVerticle();
TestVerticleFactory fact = new TestVerticleFactory("actual", verticle);
vertx.registerVerticleFactory(fact);
TestVerticleFactory factResolve = new TestVerticleFactory("resolve", "actual:myverticle");
vertx.registerVerticleFactory(factResolve);
JsonObject config = new JsonObject().put("foo", "bar");
DeploymentOptions original = new DeploymentOptions().setWorker(false).setConfig(config).setIsolationGroup("somegroup");
DeploymentOptions options = new DeploymentOptions(original);
vertx.deployVerticle("resolve:someid", options, res -> {
assertTrue(res.succeeded());
assertEquals("resolve:someid", factResolve.identifierToResolve);