public void test_withYear_int_adjustDay() {

    LocalDateTime t = LocalDateTime.of(2008, 2, 29, 12, 30).withYear(2007);
    LocalDateTime expected = LocalDateTime.of(2007, 2, 28, 12, 30);
    assertEquals(t, expected);
  }

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