### Question:
MaintenanceScheduler { @Scheduled(fixedDelayString = "${maintenance.scheduled.fixed-delay}", initialDelayString = "${maintenance.scheduled.initial-delay}") public void launchRepeatlyTask() { runMaintenanceTask(REPEAT); }  @PostConstruct void launchOnceTask(); @Scheduled(cron = "${maintenance.scheduled.cron}") void launchNightlyTask(); @Scheduled(fixedDelayString = "${maintenance.scheduled.fixed-delay}", initialDelayString = "${maintenance.scheduled.initial-delay}") void launchRepeatlyTask();  }### Answer:
@Test public void testScheduleRepeat() { scheduler.launchRepeatlyTask(); verify(listTask.get(4), times(1)).performTask(); verify(listTask.get(5), times(0)).performTask(); listTask .stream() .filter(task -> !(task instanceof MockScheduledRepeatTask)) .forEach(task -> { verify(task, times(0)).performTask(); verify(task, times(0)).condition(); verify(task, times(0)).execute(); }); }