@Test
public void testParseRepeatableStartEndDateTime() {

    OffsetDateTime oneMinuteFromNow = OffsetDateTime.now().plusMinutes(1);
    OffsetDateTime twoMinutesFromNow = oneMinuteFromNow.plusMinutes(1);
    String oneMinuteFromNowFormatted = oneMinuteFromNow.format(DateTimeFormatter.ISO_DATE_TIME);
    String twoMinutesFromNowFormatted = twoMinutesFromNow.format(DateTimeFormatter.ISO_DATE_TIME);
    String isoString = "R5/" + oneMinuteFromNowFormatted  + "/" + twoMinutesFromNowFormatted;
    long[] parsedRepeatable = DateTimeUtils.parseRepeatableDateTime(isoString);
    assertEquals(5L, parsedRepeatable[0]);
    assertTrue(parsedRepeatable[1] <= MINUTE_IN_MILLISECONDS,
                          "Parsed delay is bigger than " + MINUTE_IN_MILLISECONDS);
    assertTrue(parsedRepeatable[1] > FIFTY_NINE_SECONDS_IN_MILLISECONDS,
                          "Parsed delay is too low! Expected value is between " + MINUTE_IN_MILLISECONDS + " and " + FIFTY_NINE_SECONDS_IN_MILLISECONDS + " but is " + parsedRepeatable[1]);
    assertEquals(MINUTE_IN_MILLISECONDS, parsedRepeatable[2],
                            "Parsed period should be one minute in milliseconds but is " + parsedRepeatable[2]);
}