### Question:
DateUtils { public static String formatInstant(Instant instant) { if (instant == null) { return null; } return DATE_FORMATTER.withZone(ZoneOffset.UTC).format(instant); }  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 testFormatInstant() { Instant instant = of(2017, 12, 10); String formatted = DateUtils.formatInstant(instant); assertThat(formatted).isEqualTo("2017-12-10"); }