eventBus.enableCatchAllSubscriber(q);
eventBus.publish(new Event("name", 1));
assertEquals("No event enqueued to catch all subscriber.", 1, testAwareQueue.offeredCount.get());
assertNotNull("No event enqueued to catch all subscriber sink under 1 second.", q.poll(1, TimeUnit.SECONDS));
eventBus.disableCatchAllSubscriber();
q.clear();
testAwareQueue.offeredCount.set(0);
eventBus.publish(new Event("name", 1));
assertEquals("Event enqueued to catch all subscriber after disable.", 0, testAwareQueue.offeredCount.get());
assertNull("Event enqueued to catch all subscriber sink under 1 second after disable.", q.poll(1, TimeUnit.SECONDS));