### Question:
DateUtils { public static String formatDate(final Date date) { return formatDate(date, PATTERN_RFC1123); } private  DateUtils(); static Date parseDate(final String dateValue); static Date parseDate(final MessageHeaders headers, final String headerName); static boolean isAfter(
            final MessageHeaders message1,
            final MessageHeaders message2,
            final String headerName); static boolean isBefore(
            final MessageHeaders message1,
            final MessageHeaders message2,
            final String headerName); static Date parseDate(final String dateValue, final String[] dateFormats); static Date parseDate(
            final String dateValue,
            final String[] dateFormats,
            final Date startDate); static String formatDate(final Date date); static String formatDate(final Date date, final String pattern); static void clearThreadLocal(); static final String PATTERN_RFC1123; static final String PATTERN_RFC1036; static final String PATTERN_ASCTIME; static final TimeZone GMT; }### Answer:
@Test public void testBasicDateFormat() throws Exception { final Date date = createDate(2005, Calendar.OCTOBER, 14); Assert.assertEquals("Fri, 14 Oct 2005 00:00:00 GMT", DateUtils.formatDate(date)); Assert.assertEquals("Fri, 14 Oct 2005 00:00:00 GMT", DateUtils.formatDate(date, DateUtils.PATTERN_RFC1123)); }