### Question:
TaskLaunchScheduledService extends AbstractScheduledService { @Override protected Scheduler scheduler() { return Scheduler.newFixedDelaySchedule(2, 10, TimeUnit.SECONDS); }    }### Answer:
@Test public void assertScheduler() throws Exception { assertThat(taskLaunchScheduledService.scheduler(), instanceOf(Scheduler.class)); }
@Test public void assertScheduler() { assertThat(taskLaunchScheduledService.scheduler(), instanceOf(Scheduler.class)); }