doneSignal = new CountDownLatch(numberLongEvents);
longProcessSubscriber = new LongProcessSubscriber(asyncEventBus, doneSignal);
long start = System.currentTimeMillis();
for (int i = 0; i < numberLongEvents; i++) {
asyncEventBus.post(new CashPurchaseEvent(1000l, "Stuff"));
}
doneSignal.await();
long elapsed = start - System.currentTimeMillis();
assertTrue(elapsed <= 3000l && elapsed < 3500l);
}