@Test
void onAny() {

    final EventConsumer eventConsumer = new EventConsumer();
    instance.onAny(eventConsumer);
    final List<Event> expected = Arrays.asList(new FooEvent(), new BarEvent());
    expected.forEach(instance::notify);
    assertEquals(expected, eventConsumer.events());
}