### Question:
Timer { public Collection<String> list() { return jobs.keySet(); } Timer(String name, MetricsRegistry registry); void add(String name, Runnable runnable, int seconds, Date nextRun); void add(String name, Runnable runnable, int seconds); void remove(String name); Collection<String> list(); void pause(); void resume(); void stop(); void start();  }### Answer:
@Test public void testThatTimerSupportsAddingTasks() { Assert.assertTrue(timer.list().contains(TASK1)); Assert.assertTrue(timer.list().contains(TASK2)); }