@Test
public void getCapturedNotifications() {

    TimedMessageListTrap<TestNotification> trap = TimedMessageListTrap.createAndSubscribe(TestNotification.class, new MockTimeProvider(), TestSchedulerType.TEST_SCHEDULER_TYPE);
    NotificationRouter.get().broadcast(new TestNotification());
    NotificationRouter.get().broadcast(new TestNotification());
    NotificationRouter.get().broadcast(new TestNotification());
    Assertions.assertEquals(3, trap.getCapturedNotifications().size(), "Expected 3 Notifications");
    Assertions.assertEquals(0.0, trap.getCapturedNotifications().get(0).time, 0.1);
    Assertions.assertEquals(1.0, trap.getCapturedNotifications().get(1).time, 0.1);
    Assertions.assertEquals(2.0, trap.getCapturedNotifications().get(2).time, 0.1);
}