@Test
 public void testTimeFromLastExecution() throws Exception {
   DateTime now = truncateToSeconds(DateTime.now());
   DateTime expected = truncateToSeconds(now.minusSeconds(1));
   ExecutionTime executionTime = ExecutionTime.forCron(quartzCronParser.parse(EVERY_SECOND));
   assertEquals(
       new Interval(expected, now).toDuration(), executionTime.timeFromLastExecution(now));
 }
  /**
   * Test for issue #18
   *
   * @throws Exception
   */
  @Test
  public void testHourlyIntervalTimeFromLastExecution() throws Exception {
    DateTime now = DateTime.now();
    DateTime previousHour = now.minusHours(1);
    String quartzCronExpression = String.format("0 0 %s * * ?", previousHour.getHourOfDay());
    ExecutionTime executionTime =
        ExecutionTime.forCron(quartzCronParser.parse(quartzCronExpression));

    assertTrue(executionTime.timeFromLastExecution(now).getStandardMinutes() <= 120);
  }