@Test
void testThrowsIllegalArgument_whenSubscriberParameterNotANotification() {

    NotificationBus<Notification> bus = new TestBus();
    assertThatThrownBy(() -> bus.addHandler(new Subscriber() {
        @Subscribe
        public void invalidHandler(String notANotification) {
        }
        @Override
        public EventSchedulerType getSchedulerType() {
            return TestSchedulerType.TEST_SCHEDULER_TYPE;
        }
    }))
    .isInstanceOf(IllegalArgumentException.class)
    .hasMessageContaining("invalidHandler")
    .hasMessageContaining("String");
}