@Test
public void parsesANSI() {

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