### Question:
DateUtils { public static String toUTCDateFormat(final Date date) { return dateToString(date, UTC_DATE_Z_FORMAT, UTC_TIME_ZONE); }  static String dateToString(final Date date); static String toUTCDateFormat(final Date date); static String toUTCDateFormatWithMilliseconds(final Date date); static String toFullLocalDateFormat(final Date date); static Date stringToDate(String strDate);  }### Answer:
@Test public void testToUTCDateFormat() { String have = DateUtils.toUTCDateFormat(dateWithoutMilliseconds); SimpleDateFormat sdf = utcSimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); String expect = sdf.format(dateWithoutMilliseconds); assertThat(have).isEqualTo(expect); }