Vertigo vertigo = new Vertigo(this);
vertigo.deployCluster("test", new Handler<AsyncResult<Cluster>>() {
@Override
public void handle(AsyncResult<Cluster> result) {
assertTrue(result.succeeded());
final Cluster cluster = result.result();
cluster.deployWorkerVerticle(TestVerticle1.class.getName(), new JsonObject().putString("foo", "bar"), 1, false, new Handler<AsyncResult<String>>() {
@Override
public void handle(AsyncResult<String> result) {
assertTrue(result.succeeded());
assertNotNull(result.result());
cluster.undeployVerticle(result.result(), new Handler<AsyncResult<Void>>() {
@Override
public void handle(AsyncResult<Void> result) {
assertTrue(result.succeeded());
testComplete();
}