### Question:
LocalDateTimeToDateConverter { public static Date convertToDateViaSqlTimestamp(LocalDateTime dateToConvert) { return java.sql.Timestamp.valueOf(dateToConvert); }  static Date convertToDateViaSqlTimestamp(LocalDateTime dateToConvert); static Date convertToDateViaInstant(LocalDateTime dateToConvert);  }### Answer:
@Test public void shouldReturn10thNovember2010WhenConvertViaSqlTimestamp() { LocalDateTime dateToConvert = LocalDateTime.of(2010, 11, 10, 8, 20); Date date = LocalDateTimeToDateConverter.convertToDateViaSqlTimestamp(dateToConvert); Calendar calendar = Calendar.getInstance(); calendar.setTime(date); assertEquals(2010, calendar.get(Calendar.YEAR)); assertEquals(10, calendar.get(Calendar.MONTH)); assertEquals(10, calendar.get(Calendar.DAY_OF_MONTH)); assertEquals(8, calendar.get(Calendar.HOUR)); assertEquals(20, calendar.get(Calendar.MINUTE)); assertEquals(0, calendar.get(Calendar.SECOND)); }