Buggy code:
public class DateUtilsTest extends TestCase { private static final long MILLIS_TEST ; DateFormat dateParser = null ; DateFormat dateTimeParser = null ; DateFormat timeZoneDateParser = null ; Date dateAmPm1 = null ; Date dateAmPm2 = null ; Date dateAmPm3 = null ; Date dateAmPm4 = null ; Date date0 = null ; Date date1 = null ; Date date2 = null ; Date date3 = null ; Date date4 = null ; Date date5 = null ; Date date6 = null ; Date date7 = null ; Date date8 = null ; Calendar calAmPm1 = null ; Calendar calAmPm2 = null ; Calendar calAmPm3 = null ; Calendar calAmPm4 = null ; Calendar cal1 = null ; Calendar cal2 = null ; Calendar cal3 = null ; Calendar cal4 = null ; Calendar cal5 = null ; Calendar cal6 = null ; Calendar cal7 = null ; Calendar cal8 = null ; TimeZone zone = null ; TimeZone defaultZone = null ; public DateUtilsTest ( String name ) { } @ Override protected void setUp ( ) throws Exception { } public void testConstructor ( ) { } public void testIsSameDay_Date ( ) { } public void testIsSameDay_Cal ( ) { } public void testIsSameInstant_Date ( ) { } public void testIsSameInstant_Cal ( ) { } public void testIsSameLocalTime_Cal ( ) { } public void testParseDate ( ) throws Exception { GregorianCalendar cal = new GregorianCalendar ( 1972 , 11 , 3 ) ; String dateStr = "1972-12-03" ; String [ ] parsers = new String [ ] { "yyyy'-'DDD" , "yyyy'-'MM'-'dd" , "yyyyMMdd" } ; Date date = DateUtils . parseDate ( dateStr , parsers ) ; DateUtilsTest . assertEquals ( cal . getTime ( ) , date ) ; dateStr = "1972-338" ; date = DateUtils . parseDate ( dateStr , parsers ) ; DateUtilsTest . assertEquals ( cal . getTime ( ) , date ) ; dateStr = "19721203" ; date = DateUtils . parseDate ( dateStr , parsers ) ; DateUtilsTest . assertEquals ( cal . getTime ( ) , date ) ; try { DateUtils . parseDate ( "PURPLE" , parsers ) ; fail ( ) ; } catch ( ParseException ex ) { } try { DateUtils . parseDate ( "197212AB" , parsers ) ; fail ( ) ; } catch ( ParseException ex ) { } try { DateUtils . parseDate ( null , parsers ) ; fail ( ) ; } catch ( IllegalArgumentException ex ) { } try { <START_BUG> DateUtils . parseDate ( dateStr , null ) ; <END_BUG> fail ( ) ; } catch ( IllegalArgumentException ex ) { } try { DateUtils . parseDate ( dateStr , new String [ 0 ] ) ; fail ( ) ; } catch ( ParseException ex ) { } } public void testParseDateWithLeniency ( ) throws Exception { } public void testAddYears ( ) throws Exception { } public void testAddMonths ( ) throws Exception { } public void testAddWeeks ( ) throws Exception { } public void testAddDays ( ) throws Exception { } public void testAddHours ( ) throws Exception { } public void testAddMinutes ( ) throws Exception { } public void testAddSeconds ( ) throws Exception { } public void testAddMilliseconds ( ) throws Exception { } public void testSetYears ( ) throws Exception { } public void testSetMonths ( ) throws Exception { } public void testSetDays ( ) throws Exception { } public void testSetHours ( ) throws Exception { } public void testSetMinutes ( ) throws Exception { } public void testSetSeconds ( ) throws Exception { } public void testSetMilliseconds ( ) throws Exception { } private void assertDate ( Date date , int year , int month , int day , int hour , int min , int sec , int mil ) throws Exception { } public void testToCalendar ( ) { } public void testRound ( ) throws Exception { } public void testRoundLang346 ( ) throws Exception { } public void testTruncate ( ) throws Exception { } public void testTruncateLang59 ( ) throws Exception { } public void testLang530 ( ) throws ParseException { } public void testCeil ( ) throws Exception { } public void testIteratorEx ( ) throws Exception { } public void testWeekIterator ( ) throws Exception { } public void testMonthIterator ( ) throws Exception { } private static void assertWeekIterator ( Iterator < ? > it , Calendar start ) { } private static void assertWeekIterator ( Iterator < ? > it , Date start , Date end ) { } private static void assertWeekIterator ( Iterator < ? > it , Calendar start , Calendar end ) { } private static void assertEquals ( String message , Calendar cal1 , Calendar cal2 , long delta ) { } void warn ( String msg ) { } }

Fix:
DateUtils . parseDate ( dateStr , ( ( String [ ] ) ( null ) ) ) ;