JodaFormatter { public String formatDateTime(DateTime dateTime) { return dateTimeFormatter.print(dateTime); } JodaFormatter(); Period parse(String intervalString, Locale locale); Period parsePeriod(String intervalString); String formatPeriod(Period period); DateTime parseDateTime(String isoDateTime); String formatDateTime(DateTime dateTime);  }
@Test public void shouldPrintDateTime() { assertEquals("1970-01-01T00:00:00.000Z", new JodaFormatter().formatDateTime(new DateTime(0).toDateTime(DateTimeZone.UTC))); }