### Question:
EventManager implements IEventManager { public void autoDiscovery() { try { Class.forName("com.github.philippheuer.events4j.simple.SimpleEventHandler"); log.info("Auto Discovery: SimpleEventHandler registered!"); SimpleEventHandler simpleEventHandler = new SimpleEventHandler(); registerEventHandler(simpleEventHandler); } catch (ClassNotFoundException ex) { log.debug("Auto Discovery: SimpleEventHandler not available!"); } try { Class.forName("com.github.philippheuer.events4j.reactor.ReactorEventHandler"); log.info("Auto Discovery: ReactorEventHandler registered!"); ReactorEventHandler reactorEventHandler = new ReactorEventHandler(); registerEventHandler(reactorEventHandler); } catch (ClassNotFoundException ex) { log.debug("Auto Discovery: ReactorEventHandler not available!"); } } EventManager(); void registerEventHandler(IEventHandler eventHandler); void autoDiscovery(); void publish(Object event); boolean hasEventHandler(Class eventHandlerClass); E getEventHandler(Class<E> eventHandlerClass); IDisposable onEvent(Class<E> eventClass, Consumer<E> consumer); void setDefaultEventHandler(Class eventHandler); void setDefaultEventHandler(String eventHandler); void close();  }### Answer:
@Test public void testAutoDiscovery() { Assertions.assertEquals(2, eventManager.getEventHandlers().size(), "should have discovered 2 handlers"); }