@Test
@Parameters({

    "2018-01-19T09:00:00.00Z, hours, 2018-01-19T07:00:00.00Z",
    "2018-01-19T00:00:00.00Z, days, 2018-01-17T00:00:00.00Z",
    "2018-01-15T00:00:00.00Z, weeks, 2018-01-01T00:00:00Z",
    "2018-01-01T00:00:00.00Z, months, 2017-11-01T00:00:00.00Z",
    "2018-01-01T00:00:00.00Z, years, 2016-01-01T00:00:00.00Z",
})
public void shouldGetCorrectInstantWithNegativeOffset(String origin, String schedule,
                                                      String expected) {
  assertThat(offsetInstant(parse(origin), Schedule.parse(schedule), -2), is(parse(expected)));
}