### Question:
DateTimesHelper { public String toStringWithTimeZone(T dateTime) { return toDateTime(dateTime).toString(ISODateTimeFormat.dateTimeNoMillis()); } DateTimesHelper(Class<T> dateTimeClass, Class<D> dateClass); T toDateTime(Calendar calendar); T toDateTime(Instant instant, String timeZoneId); T toDateTime(DateTime dateTime); T toDateTime(String dateTime, String timeZoneId); T toDateTimeWithTimeZone(String dateTime); String dateToString(D date); DateTime toDateTime(T dateTime); Calendar toCalendar(T dateTime); Calendar toCalendar(T dateTime, Locale locale); String toString(T dateTime); String toStringWithTimeZone(T dateTime); String toStringForTimeZone(T dateTime, String newZoneID);  }### Answer:
@Test public void testToStringWithTimeZone_fromApiDateTime() { Assert.assertEquals( stringDateTimeWithTimeZone1, dateTimesHelper.toStringWithTimeZone(apiDateTime1)); Assert.assertEquals( stringDateTimeWithTimeZone2, dateTimesHelper.toStringWithTimeZone(apiDateTime2)); Assert.assertEquals( stringDateTimeWithTimeZone3, dateTimesHelper.toStringWithTimeZone(apiDateTime3)); }