inOrder.verify(listener).afterAwait();
}
@Test
public void cyclicBarrierAwaitException() throws InterruptedException, BrokenBarrierException {
DeadlockInfo deadlock = mock(DeadlockInfo.class);
doThrow(new DeadlockIdentifiedException(deadlock)).when(listener).beforeAwait(barrier);
try {
barrier.await();
fail();
} catch (DeadlockIdentifiedException e) {