### Question:
DateTimes { public static Calendar toCalendar(DateTime dateTime) { return dateTimesHelper.toCalendar(dateTime); } 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 testToCalendar_fromApiDate() { assertEquals(calendar1, DateTimes.toCalendar(apiDateTime1)); assertEquals(calendar2, DateTimes.toCalendar(apiDateTime2)); assertEquals(calendar3, DateTimes.toCalendar(apiDateTime3)); }
@Test public void testToCalendar_fromApiDate_withLocales() { assertEquals(calendarWithLocale1, DateTimes.toCalendar(apiDateTime1, LOCALE1)); assertEquals(calendarWithLocale2, DateTimes.toCalendar(apiDateTime2, LOCALE2)); assertEquals(calendarWithLocale3, DateTimes.toCalendar(apiDateTime3, LOCALE3)); }