public void factory_ofYearDay_ints_leap() {

    LocalDate date = LocalDate.of(2008, 1, 1);
    for (int i = 1; i < 366; i++) {
      assertEquals(LocalDate.ofYearDay(2008, i), date);
      date = next(date);
    }
  }

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