final Phaser a = new Phaser(1);
final Phaser b = new Phaser(1);
JArmus.register(a);
JArmus.register(b);
PhaserChecker ph = new PhaserChecker();
ph.onArrive(b);
//b.arrive();
ph.beforeArriveAndAwaitAdvance(a);
//a.arriveAndAwaitAdvance();
ph.afterArriveAndAwaitAdvance();
ph.beforeAwaitAdvance(b, 0);
//b.awaitAdvance(0);
ph.afterAwaitAdvance();
}