@Test
public void testgetNextTimeMinutes() throws MessageFormatException {

    String test = "30 * * * *";
    long current = 20*60*1000;
    Calendar calender = Calendar.getInstance();
    calender.setTimeInMillis(current);
    int startHours = calender.get(Calendar.HOUR_OF_DAY);
    int startMinutes = calender.get(Calendar.MINUTE);
    LOG.debug("start:" + calender.getTime());
    long next = CronParser.getNextScheduledTime(test, current);
    calender.setTimeInMillis(next);
    LOG.debug("next:" + calender.getTime());
    long result = next - current;
    if (startHours == 20 && startMinutes == 50) {
        assertEquals(60*40*1000,result); // allow for 30 min offset timezone
    } else {
        assertEquals(60*10*1000,result);
    }
}