Counter counter = ar.result();
counter.compareAndSet(0l, 2l, onSuccess(result -> {
getVertx().sharedData().getCounter("foo", ar3 -> {
assertTrue(ar3.succeeded());
Counter counter2 = ar3.result();
counter2.compareAndSet(2l, 4l, ar4 -> {
assertTrue(ar4.succeeded());
assertTrue(ar4.result());
counter2.compareAndSet(3l, 5l, ar5 -> {
assertTrue(ar5.succeeded());
assertFalse(ar5.result());