checkSourceEvents(2, FooEvent.TYPE, source1);
checkSourceEvents(1, FooEvent.TYPE, source2);
checkSourceEvents(1, FooEvent.TYPE, null);
assertEquals(4, eventBus.getFiredCount(FooEvent.TYPE));
eventBus.fireEventFromSource(new BarEvent(), source2);
checkSourceEvents(2, FooEvent.TYPE, source1);
checkSourceEvents(1, FooEvent.TYPE, source2);
checkSourceEvents(1, FooEvent.TYPE, null);
assertEquals(4, eventBus.getFiredCount(FooEvent.TYPE));
checkSourceEvents(1, BarEvent.TYPE, source2);