vertigo.deployCluster("test", new Handler<AsyncResult<Cluster>>() {
@Override
public void handle(AsyncResult<Cluster> result) {
assertTrue(result.succeeded());
final Cluster cluster = new DefaultCluster("test", vertx, container);
final AsyncCounter data = cluster.getCounter("test-counter-decrement");
data.decrementAndGet(new Handler<AsyncResult<Long>>() {
@Override
public void handle(AsyncResult<Long> result) {
assertTrue(result.succeeded());
assertTrue(result.result() == -1);
data.decrement(new Handler<AsyncResult<Void>>() {
@Override
public void handle(AsyncResult<Void> result) {
assertTrue(result.succeeded());
data.get(new Handler<AsyncResult<Long>>() {
@Override
public void handle(AsyncResult<Long> result) {
assertTrue(result.succeeded());
assertTrue(result.result() == -2);
testComplete();