} else {
// Now create a connection on the network. Both the "sender" and the
// "receiver" component will be automatically updated with the new
// connection, and messages send to the "sender"s "out" port will
// be sent to the "receiver"s "in" port.
ActiveNetwork network = result.result();
network.createConnection("sender", "out", "receiver", "in", new Handler<AsyncResult<ActiveNetwork>>() {
@Override
public void handle(AsyncResult<ActiveNetwork> result) {
if (result.failed()) {
assertTrue(result.cause().getMessage(), result.succeeded());
} else {