SimpleEventBus extends EventBus { public final Collection<ListenerMethod> getMethods(final String eventType) { final Collection<ListenerMethod> methods; synchronized (this.lock) { methods = this.listenerMethodMultimap.get(eventType); } return methods; } SimpleEventBus(); final Collection<ListenerMethod> getMethods(final String eventType);  }
@Test void createListeners() { final SimpleEventBus eventBus = createEventBus(); eventBus.registerListeners(new TestListenerClass()); Assertions.assertEquals(1, eventBus.getMethods(String.class.getName()).size()); }