@Override
public void handle(AsyncResult<String> result) {
if (result.failed()) {
fail(result.cause().getMessage());
} else {
final ComponentCoordinator coordinator = new DefaultComponentCoordinator(instance, vertx, new DefaultCluster("vertigo", vertx, container));
coordinator.start(new Handler<AsyncResult<Void>>() {
@Override
public void handle(AsyncResult<Void> result) {
if (result.failed()) {
fail(result.cause().getMessage());
} else {
coordinator.resumeHandler(new Handler<Void>() {
@Override
public void handle(Void _) {
testComplete();
}
});