private void assertAllTasksWereRunning(long startTimestamp) throws IOException {
    final List<ScheduledServiceListResource> tasks = TaskScheduleUtil.getTasks();

    for (ScheduledServiceListResource task : tasks) {
      assertThat(
          "task did not run properly!", task.getLastRunTimeInMillis(), greaterThan(startTimestamp));
    }
  }