@SuppressWarnings("unchecked")
    @Override
    public <T extends EventListener<?>> T[] getListeners(final EventType eventType) {
        return eventType != null ? (T[]) this.listenerMap.get(eventType) : null;
    }
@Test
    void testGetListenersWithNullType() {
        assertNull(this.instance.getListeners(null));
    }