final Vertigo vertigo = new Vertigo(this);
vertigo.deployCluster(new Handler<AsyncResult<Cluster>>() {
@Override
public void handle(AsyncResult<Cluster> result) {
assertTrue(result.succeeded());
NetworkConfig network = vertigo.createNetwork();
network.addVerticle("sender", TestCircularSender.class.getName());
network.addVerticle("receiver", TestCircularReceiver.class.getName());
network.createConnection("sender", "out", "receiver", "in");
network.createConnection("receiver", "out", "sender", "in");
result.result().deployNetwork(network, new Handler<AsyncResult<ActiveNetwork>>() {
@Override
public void handle(AsyncResult<ActiveNetwork> result) {
if (result.failed()) {
assertTrue(result.cause().getMessage(), result.succeeded());