@Test
public void testTrickyDates() throws Exception {

    DateFormat df = new SimpleDateFormat("yyyy-MM-dd", new DateFormatSymbols(Locale.US));
    //make sure there are no mis-parses of e.g. 90 = year 90 A.D, not 1990
    Date date1980 = df.parse("1980-01-01");
    for (String dateString : new String[] {
            "Mon, 29 Jan 96 14:02 GMT",
            "7/20/95 1:12pm",
            "08/14/2000  12:48 AM",
            "06/24/2008, Tuesday, 11 AM",
            "11/14/08",
            "12/02/1996",
            "96/12/02",
    }) {
        Date parsedDate = getDate(dateString);
        if (parsedDate != null) {
            assertTrue("date must be after 1980:"+dateString, parsedDate.getTime() > date1980.getTime());
        }
    }
    //TODO: mime4j misparses these to pre 1980 dates
    //"Wed, 27 Dec 95 11:20:40 EST",
    //"26 Aug 00 11:14:52 EDT"
    //
    //We are still misparsing: 8/1/03 to a pre 1980 date
}