### Question:
LocalDateToDateConverter { public static Date convertToDateViaInstant(LocalDate dateToConvert) { return java.util.Date.from(dateToConvert.atStartOfDay() .atZone(ZoneId.systemDefault()) .toInstant()); }  static Date convertToDateViaSqlDate(LocalDate dateToConvert); static Date convertToDateViaInstant(LocalDate dateToConvert);  }### Answer:
@Test public void shouldReturn10thNovember2010WhenConvertViaInstant() { LocalDate dateToConvert = LocalDate.of(2010, 11, 10); Date date = LocalDateToDateConverter.convertToDateViaInstant(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)); }