@Test
public void parsesRFC_1123() {

    // EEE, dd MMM yyyy HH:mm:ss zzz
    String dateHeader = "Thu, 29 Dec 2011 12:03:50 GMT";
    Date expectedDate = date(2011, 12, 29, 12, 3, 50, "GMT");
    Date date = HeaderHelper.parseDateHeader(dateHeader);
    assertTrue(String.format("Dates are not equal, %s and %s", expectedDate, date),
               Math.abs(expectedDate.getTime() - date.getTime()) < 1000);
}