@Test
public void whenRunnableIsADamonEvent_theSchedulerKnowsItHasOnlyDamonEvents() {

    simpleDiscreteEventScheduler.pause();
    RepeatingRunnable.startInDaemon(0, 1, "Test Event", time -> {}, simpleDiscreteEventScheduler);
    simpleDiscreteEventScheduler.doAt(20, () -> Preconditions.checkState(simpleDiscreteEventScheduler.hasOnlyDaemonEvents()));
    simpleDiscreteEventScheduler.doAtDaemon(100, simpleDiscreteEventScheduler::stop, "Shutdown Event");
    simpleDiscreteEventScheduler.unPause();
    Assertions.assertNull(exceptionSwallowingEventExecutor.getFirstExceptionEncountered());
}