public void test_compareTo_both() {

    OffsetDate a = OffsetDate.of(2008, 6, 29, OFFSET_PTWO);
    OffsetDate b = OffsetDate.of(2008, 6, 30, OFFSET_PONE); // a is before b on instant scale
    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(groups = { "tck" }