@Override
  public int compare(OffsetDateTime date1, OffsetDateTime date2) {
    return OffsetDateTime.timeLineOrder().compare(date1, date2);
  }
@Test
  void should_disregard_time_zone_difference() {
    ZonedDateTime now = ZonedDateTime.now();
    OffsetDateTime inParis = now.withZoneSameInstant(ZoneId.of("Europe/Paris")).toOffsetDateTime();
    OffsetDateTime inNewYork = now.withZoneSameInstant(ZoneId.of("America/New_York")).toOffsetDateTime();

    assertThat(inParis.compareTo(inNewYork)).as("Built-in comparison should report that they differ").isNotZero();
    assertThat(comparator.compare(inParis, inNewYork)).isZero();
  }