@Test
public void testGetNextRange() throws MessageFormatException {

    String token = "3-5";
    // test minimum values
    int next = CronParser.getNext(createEntry(token, 1, 10), 3);
    assertEquals(1, next);
    next = CronParser.getNext(createEntry(token, 1, 10), 5);
    assertEquals(7, next);
    next = CronParser.getNext(createEntry(token, 1, 10), 6);
    assertEquals(6, next);
    next = CronParser.getNext(createEntry(token, 1, 10), 1);
    assertEquals(2, next);
}