DateTimeUtils { public static String formatDateTime(final DateTime dateTime) { return FORMATTER_RFC1123.print(dateTime); } private  DateTimeUtils(); static String formatDateTime(final DateTime dateTime); static final DateTimeFormatter FORMATTER_RFC1123; }
@Test public void format_DateTime_Uses_RFC1123_Pattern() { assertTrue(rfc1123.matcher(formatDateTime(new DateTime())).matches()); }
@Test public void format_DateTime_Uses_GMT_TimeZone() { assertThat(formatDateTime(new DateTime()), endsWith("GMT")); }