### Question:
DateToLocalDateTimeConverter { public static LocalDateTime convertToLocalDateTime(Date dateToConvert) { return LocalDateTime.ofInstant(dateToConvert.toInstant(), ZoneId.systemDefault()); }  static LocalDateTime convertToLocalDateTimeViaInstant(Date dateToConvert); static LocalDateTime convertToLocalDateTimeViaSqlTimestamp(Date dateToConvert); static LocalDateTime convertToLocalDateTimeViaMilisecond(Date dateToConvert); static LocalDateTime convertToLocalDateTime(Date dateToConvert);  }### Answer:
@Test public void shouldReturn10thNovember2010time8hour20minWhenConvertToLocalDateTime() { Calendar calendar = Calendar.getInstance(); calendar.set(2010, 10, 10, 8, 20); Date dateToConvert = calendar.getTime(); LocalDateTime localDateTime = DateToLocalDateTimeConverter.convertToLocalDateTime(dateToConvert); assertEquals(2010, localDateTime.get(ChronoField.YEAR)); assertEquals(11, localDateTime.get(ChronoField.MONTH_OF_YEAR)); assertEquals(10, localDateTime.get(ChronoField.DAY_OF_MONTH)); assertEquals(8, localDateTime.get(ChronoField.HOUR_OF_DAY)); assertEquals(20, localDateTime.get(ChronoField.MINUTE_OF_HOUR)); }