public void factory_ofInstant_minYear() {

    long oneDay = 24 * 60 * 60;
    long addition = ((Long.MAX_VALUE / oneDay) + 2) * oneDay;

    OffsetTime test = OffsetTime.ofInstant(Instant.ofEpochSecond(Long.MIN_VALUE), ZoneOffset.UTC);
    long added = Long.MIN_VALUE + addition;
    int hour = (int) ((added / (60 * 60)) % 24);
    int min = (int) ((added / 60) % 60);
    int sec = (int) (added % 60);
    assertEquals(test.getHour(), hour);
    assertEquals(test.getMinute(), min);
    assertEquals(test.getSecond(), sec);
    assertEquals(test.getNano(), 0);
  }

  // -----------------------------------------------------------------------
  // from(DateTimeAccessor)
  // -----------------------------------------------------------------------
  @Test(groups = { "tck" }