### Question:
DateTimes { public static String toString(Date date) { return dateTimesHelper.dateToString(date); } private  DateTimes(); static DateTime toDateTime(Calendar calendar); static DateTime toDateTime(Instant instant, String timeZoneId); static DateTime toDateTime(org.joda.time.DateTime dateTime); static DateTime toDateTime(String dateTime, String timeZoneId); static DateTime toDateTimeWithTimeZone(String dateTime); static org.joda.time.DateTime toDateTime(DateTime dateTime); static Calendar toCalendar(DateTime dateTime); static Calendar toCalendar(DateTime dateTime, Locale locale); static String toString(Date date); static String toString(DateTime dateTime); static String toStringWithTimeZone(DateTime dateTime); static String toStringForTimeZone(DateTime dateTime, String newZoneId);  }### Answer:
@Test public void testToString_fromApiDate() { Assert.assertEquals(stringDate1, DateTimes.toString(apiDateTime1.getDate())); Assert.assertEquals(stringDate2, DateTimes.toString(apiDateTime2.getDate())); Assert.assertEquals(stringDate3, DateTimes.toString(apiDateTime3.getDate())); }
@Test public void testToString_fromApiDateTime() { Assert.assertEquals(stringDateTime1, DateTimes.toString(apiDateTime1)); Assert.assertEquals(stringDateTime2, DateTimes.toString(apiDateTime2)); Assert.assertEquals(stringDateTime3, DateTimes.toString(apiDateTime3)); }