### Question:
DateUtil { public static String formatIso8601Date(Date date) { return formatIso8601Date(date.getTime()); } private  DateUtil(); static Date parseRfc1123Date(String dateStr); static Date parseIso8601DateTime(String dateStr); static String formatIso8601Date(Date date); static String formatIso8601Date(long time); static String formatRfc1123Date(Date date); static String formatRfc1123Date(long timeStamp);  }### Answer:
@Test public void formatIso8601() { for (int i = 0, j = timeStamps.length; i < j; ++i) { assertEquals(iso8601text[i], DateUtil.formatIso8601Date(timeStamps[i].getTime())); } }
@Test public void formatIso8601Date() { for (int i = 0, j = timeStamps.length; i < j; ++i) { assertEquals(iso8601text[i], DateUtil.formatIso8601Date(timeStamps[i])); } }