### Question:
DateUtils { public static Instant parseDateInstant(String strDate) { LocalDateTime dateTime = parseDate(strDate); if (dateTime != null) { return dateTime.toInstant(ZoneOffset.UTC); } return null; }  static String formatDate(TemporalAccessor dateTime); static String formatInstant(Instant instant); static LocalDateTime parseDate(String date); static LocalDateTime parseDateTime(String dateTime); static Instant parseDateInstant(String strDate);  }### Answer:
@Test public void testParseInstant() { String formatted = "2017-12-10"; Instant instant = DateUtils.parseDateInstant(formatted); assertThat(instant).isEqualTo(of(2017, 12, 10)); }