### Question:
DateUtil { public static String toString(final DateVersionSpec dateVersionSpec) { final Calendar calendar = dateVersionSpec.getDate(); return toString(calendar); } private  DateUtil(); static String toString(final DateVersionSpec dateVersionSpec); static String toString(final Calendar calendar); static String toString(final Date dateTime); static Date parseDate(String dateString); @SuppressWarnings("deprecation") static Date parseDate(String dateString, Locale locale, TimeZone timezone); static final ThreadLocal<SimpleDateFormat> TFS_DATETIME_FORMATTER; }### Answer:
@Test public void toString_date() throws Exception { final String actual = DateUtil.toString(new Date(1372779650000L)); Assert.assertEquals("D2013-07-02T15:40:50Z", actual); }
@Test public void toString_calendar() throws Exception { final String actual = DateUtil.toString(fixedPointInTime); Assert.assertEquals("D2013-07-02T15:40:50Z", actual); }
@Test public void toString_dateVersionSpec() throws Exception { final String actual = DateUtil.toString(dateVersionSpec); Assert.assertEquals("D2013-07-02T15:40:50Z", actual); }