### Question:
TwoDigitYearUtil { LocalDate convertInternal(LocalDate value) { if (value.isAfter(LocalDate.of(-1, 1, 1)) && value.isBefore(LocalDate.of(100, 1, 1))) { LocalDate resultDate = value; LocalDate pivotLocalDate = LocalDate.now().withYear(getCurrentYear()).minusYears(80); int pivotYear = pivotLocalDate.getYear() % 100; int pivotCentury = pivotLocalDate.minusYears(pivotYear).getYear(); if (resultDate.getYear() < pivotYear) { resultDate = resultDate.plusYears(100); } resultDate = resultDate.plusYears(pivotCentury); return resultDate; } else { return value; } } private  TwoDigitYearUtil(); static LocalDate convert(LocalDate value);  }### Answer:
@Test public void testconvertInternal_ThreeDigitYear_NoConversion() { givenCurrentYear(2019); assertThat((convertInternaler.convertInternal(LocalDate.of(139, 12, 31))), is(LocalDate.of(139, 12, 31))); }
@Test public void testconvertInternal_FourDigitYear_NoConversion() { givenCurrentYear(2019); assertThat((convertInternaler.convertInternal(LocalDate.of(2039, 12, 31))), is(LocalDate.of(2039, 12, 31))); }
@Test public void testconvertInternal_TwoDigitYearCurrrentCentury_Future() { givenCurrentYear(2091); assertThat((convertInternaler.convertInternal(LocalDate.of(80, 2, 24))), is(LocalDate.of(2080, 2, 24))); }
@Test public void testconvertInternal_TwoDigitYearNextCentury_Future() { givenCurrentYear(2091); assertThat((convertInternaler.convertInternal(LocalDate.of(10, 5, 1))), is(LocalDate.of(2110, 5, 1))); }
@Test public void testconvertInternal_TwoDigitYearCurrentCentury() { givenCurrentYear(2019); assertThat((convertInternaler.convertInternal(LocalDate.of(19, 6, 7))), is(LocalDate.of(2019, 6, 7))); }
@Test public void testconvertInternal_TwoDigitYearLastCentury() { givenCurrentYear(2019); assertThat((convertInternaler.convertInternal(LocalDate.of(68, 3, 2))), is(LocalDate.of(1968, 3, 2))); }
@Test public void testconvertInternal_MinTwoDigitYearLastCentury() { givenCurrentYear(2019); assertThat((convertInternaler.convertInternal(LocalDate.of(39, 1, 1))), is(LocalDate.of(1939, 1, 1))); }
@Test public void testconvertInternal_MaxTwoDigitYearLastCentury() { givenCurrentYear(2019); assertThat((convertInternaler.convertInternal(LocalDate.of(99, 12, 31))), is(LocalDate.of(1999, 12, 31))); }
@Test public void testconvertInternal_MinTwoDigitYearCurrrentCentury() { givenCurrentYear(2019); assertThat((convertInternaler.convertInternal(LocalDate.of(0, 1, 1))), is(LocalDate.of(2000, 1, 1))); }
@Test public void testconvertInternal_MaxTwoDigitYearCurrrentCentury() { givenCurrentYear(2019); assertThat((convertInternaler.convertInternal(LocalDate.of(38, 12, 31))), is(LocalDate.of(2038, 12, 31))); }