public void test_compareTo_24hourDifference() {

    OffsetDate a = OffsetDate.of(2008, 6, 29, ZoneOffset.ofHours(-12));
    OffsetDate b = OffsetDate.of(2008, 6, 30, ZoneOffset.ofHours(12)); // a is before b despite being same
                                                                       // time-line time
    assertEquals(a.compareTo(b) < 0, true);
    assertEquals(b.compareTo(a) > 0, true);
    assertEquals(a.compareTo(a) == 0, true);
    assertEquals(b.compareTo(b) == 0, true);
    assertEquals(a.atTime(LocalTime.MIDNIGHT).toInstant().compareTo(b.atTime(LocalTime.MIDNIGHT).toInstant()) == 0,
        true);
  }

  @Test(expectedExceptions = NullPointerException.class, groups = { "tck" }