public void handle(AsyncResult<Void> result) {
assertTrue(result.succeeded());
NetworkConfig network = vertigo.createNetwork();
network.addComponent("sender", TestSimpleSender.class.getName());
network.addComponent("receiver", TestSimpleReceiver.class.getName()).addHook(new EventBusHook("test-hook"));
network.createConnection("sender", "out", "receiver", "in");
cluster.deployNetwork(network, new Handler<AsyncResult<ActiveNetwork>>() {
@Override
public void handle(AsyncResult<ActiveNetwork> result) {