@Test
public void testScheduleOnce() {

    scheduler.launchOnceTask();
    // only task with ScheduleFrequency = ONCE are call
    verify(listTask.get(0), times(1)).performTask();
    verify(listTask.get(1), times(0)).performTask();
    listTask
            .stream() //
            .filter(task -> !(task instanceof MockScheduledOnceTask))
            .forEach(task -> {
                verify(task, times(0)).performTask();
                verify(task, times(0)).condition();
                verify(task, times(0)).execute();
            });
}