### Question:
Scheduler extends ServiceSupport { public synchronized void executeAfterDelay(final Runnable task, long redeliveryDelay) { TimerTask timerTask = new SchedulerTimerTask(task); timer.schedule(timerTask, redeliveryDelay); } Scheduler(String name); synchronized void executePeriodically(final Runnable task, long period); synchronized void cancel(Runnable task); synchronized void executeAfterDelay(final Runnable task, long redeliveryDelay); void shutdown(); String getName();  }### Answer:
@Test public void executeAfterDelay() throws Exception { final CountDownLatch latch = new CountDownLatch(1); scheduler.executeAfterDelay(new CountDownRunnable(latch), 10); assertTrue(latch.await(5000, TimeUnit.MILLISECONDS)); }