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