assertTrue(result.succeeded());
NetworkConfig network = vertigo.createNetwork();
// The component hook is added directly to a component configuration. The
// send handler will be called each time a message is sent on *any* port.
network.addComponent("sender", TestSimpleSender.class.getName()).addHook(new TestComponentSendHook());
network.addComponent("receiver", TestSimpleReceiver.class.getName());
network.createConnection("sender", "out", "receiver", "in");
Cluster cluster = result.result();
cluster.deployNetwork(network, new Handler<AsyncResult<ActiveNetwork>>() {