### Question:
DateToLocalDateConverter { public static LocalDate convertToLocalDateViaSqlDate(Date dateToConvert) { return new java.sql.Date(dateToConvert.getTime()).toLocalDate(); }  static LocalDate convertToLocalDateViaInstant(Date dateToConvert); static LocalDate convertToLocalDateViaSqlDate(Date dateToConvert); static LocalDate convertToLocalDateViaMilisecond(Date dateToConvert); static LocalDate convertToLocalDate(Date dateToConvert);  }### Answer:
@Test public void shouldReturn10thNovember2010WhenConvertViaSqlDate() { Calendar calendar = Calendar.getInstance(); calendar.set(2010, 10, 10); Date dateToConvert = calendar.getTime(); LocalDate localDate = DateToLocalDateConverter.convertToLocalDateViaSqlDate(dateToConvert); assertEquals(2010, localDate.get(ChronoField.YEAR)); assertEquals(11, localDate.get(ChronoField.MONTH_OF_YEAR)); assertEquals(10, localDate.get(ChronoField.DAY_OF_MONTH)); }