@Test
public void testParseQuotedDate() throws Exception {

    Calendar calendar = Calendar.getInstance();
    calendar.setTimeZone(DateUtils.GMT);
    calendar.set(2005, Calendar.OCTOBER, 14, 0, 0, 0);
    calendar.set(Calendar.MILLISECOND, 0);
    Date date1 = calendar.getTime();
    String[] formats = new String[] {
            DateUtils.PATTERN_RFC1123
            };
    Date date2 = DateUtils.parseDate("'Fri, 14 Oct 2005 00:00:00 GMT'", formats);
    Assert.assertEquals(date1, date2);
}