@Test
public void testIsNotificationRegistered() {

    NotificationBus<Notification> bus = new TestBus();
    NotificationHandler handler = new NotificationHandler();
    bus.addHandler(handler);
    Assertions.assertTrue(bus.isNotificationRegistered(Notification.class));
    Assertions.assertTrue(bus.isNotificationRegistered(TestOneNotification.class));
    Assertions.assertTrue(bus.hasCorrectType(Notification.class));
    Assertions.assertTrue(bus.hasCorrectType(TestOneNotification.class));
    bus.broadcast(new TestOneNotification());
    Assertions.assertTrue(handler.handled);
}