### Question:
CronTools { public static Date getFinalFireTime(String crontabExp, Date date) throws ParseException { CronExpression expression = new CronExpression(crontabExp); return expression.getNextValidTimeAfter(date != null ? date : new Date()); }  static CronExpression getFireTime(String crontabExp); static Date getFinalFireTime(String crontabExp, Date date);  }### Answer:
@Test public void getFinalFireTime() { try { System.out.println(MainUtils.dateFormate.format(CronTools.getFinalFireTime("0 0/40 0/1 * * ?",new Date()))); } catch (ParseException e) { e.printStackTrace(); } }