vertx.registerVerticleFactory(fact2);
vertx.registerVerticleFactory(fact3);
String name1 = "aa:myverticle1";
String name2 = "bb:myverticle2";
String name3 = "cc:myverticle3";
vertx.deployVerticle(name1, new DeploymentOptions(), ar -> {
assertTrue(ar.succeeded());
assertEquals(name1, fact1.identifier);
assertTrue(verticle1.startCalled);
assertFalse(verticle2.startCalled);
assertFalse(verticle3.startCalled);
assertNull(fact2.identifier);
assertNull(fact3.identifier);
vertx.deployVerticle(name2, new DeploymentOptions(), ar2 -> {
assertTrue(ar2.succeeded());
assertEquals(name2, fact2.identifier);
assertTrue(verticle2.startCalled);
assertFalse(verticle3.startCalled);
assertNull(fact3.identifier);
vertx.deployVerticle(name3, new DeploymentOptions(), ar3 -> {
assertTrue(ar3.succeeded());
assertEquals(name3, fact3.identifier);
assertTrue(verticle3.startCalled);
testComplete();
});