Buggy code:
public class DateUtilsFragmentTest { private static final int months = 7 ; private static final int days = 23 ; private static final int hours = 19 ; private static final int minutes = 53 ; private static final int seconds = 47 ; private static final int millis = 991 ; private Date aDate ; private Calendar aCalendar ; @ Before public void setUp ( ) { } @ Test public void testNullDate ( ) { } @ Test public void testNullCalendar ( ) { } @ Test public void testInvalidFragmentWithDate ( ) { } @ Test public void testInvalidFragmentWithCalendar ( ) { } @ Test public void testMillisecondFragmentInLargerUnitWithDate ( ) { } @ Test public void testMillisecondFragmentInLargerUnitWithCalendar ( ) { } @ Test public void testSecondFragmentInLargerUnitWithDate ( ) { } @ Test public void testSecondFragmentInLargerUnitWithCalendar ( ) { } @ Test public void testMinuteFragmentInLargerUnitWithDate ( ) { } @ Test public void testMinuteFragmentInLargerUnitWithCalendar ( ) { } @ Test public void testHourOfDayFragmentInLargerUnitWithDate ( ) { } @ Test public void testHourOfDayFragmentInLargerUnitWithCalendar ( ) { } @ Test public void testDayOfYearFragmentInLargerUnitWithDate ( ) { } @ Test public void testDayOfYearFragmentInLargerUnitWithCalendar ( ) { } @ Test public void testDateFragmentInLargerUnitWithDate ( ) { } @ Test public void testDateFragmentInLargerUnitWithCalendar ( ) { } @ Test public void testMillisecondsOfSecondWithDate ( ) { } @ Test public void testMillisecondsOfSecondWithCalendar ( ) { } @ Test public void testMillisecondsOfMinuteWithDate ( ) { } @ Test public void testMillisecondsOfMinuteWithCalender ( ) { } @ Test public void testSecondsofMinuteWithDate ( ) { } @ Test public void testSecondsofMinuteWithCalendar ( ) { } @ Test public void testMillisecondsOfHourWithDate ( ) { } @ Test public void testMillisecondsOfHourWithCalendar ( ) { } @ Test public void testSecondsofHourWithDate ( ) { } @ Test public void testSecondsofHourWithCalendar ( ) { } @ Test public void testMinutesOfHourWithDate ( ) { } @ Test public void testMinutesOfHourWithCalendar ( ) { } @ Test public void testMillisecondsOfDayWithDate ( ) { } @ Test public void testMillisecondsOfDayWithCalendar ( ) { } @ Test public void testSecondsOfDayWithDate ( ) { } @ Test public void testSecondsOfDayWithCalendar ( ) { } @ Test public void testMinutesOfDayWithDate ( ) { } @ Test public void testMinutesOfDayWithCalendar ( ) { } @ Test public void testHoursOfDayWithDate ( ) { } @ Test public void testHoursOfDayWithCalendar ( ) { } @ Test public void testMillisecondsOfMonthWithDate ( ) { } @ Test public void testMillisecondsOfMonthWithCalendar ( ) { } @ Test public void testSecondsOfMonthWithDate ( ) { } @ Test public void testSecondsOfMonthWithCalendar ( ) { } @ Test public void testMinutesOfMonthWithDate ( ) { } @ Test public void testMinutesOfMonthWithCalendar ( ) { } @ Test public void testHoursOfMonthWithDate ( ) { } @ Test public void testHoursOfMonthWithCalendar ( ) { } @ Test public void testMillisecondsOfYearWithDate ( ) { } @ Test public void testMillisecondsOfYearWithCalendar ( ) { } @ Test public void testSecondsOfYearWithDate ( ) { } @ Test public void testSecondsOfYearWithCalendar ( ) { } @ Test public void testMinutesOfYearWithDate ( ) { } @ Test public void testMinutesOfYearWithCalendar ( ) { } @ Test public void testMinutesOfYearWithWrongOffsetBugWithCalendar ( ) { <START_BUG> Calendar c = Calendar . getInstance ( ) ; <END_BUG> c . set ( Calendar . MONTH , Calendar . JANUARY ) ; c . set ( Calendar . DAY_OF_YEAR , 1 ) ; c . set ( Calendar . HOUR_OF_DAY , 0 ) ; c . set ( Calendar . MINUTE , 0 ) ; c . set ( Calendar . SECOND , 0 ) ; c . set ( Calendar . MILLISECOND , 0 ) ; final long testResult = DateUtils . getFragmentInMinutes ( c , Calendar . YEAR ) ; assertEquals ( 0 , testResult ) ; } @ Test public void testHoursOfYearWithDate ( ) { } @ Test public void testHoursOfYearWithCalendar ( ) { } @ Test public void testDaysOfMonthWithCalendar ( ) throws Exception { } @ Test public void testDaysOfMonthWithDate ( ) throws Exception { } @ Test public void testDaysOfYearWithCalendar ( ) throws Exception { } @ Test public void testDaysOfYearWithDate ( ) throws Exception { } }

Fix:
final Calendar c = Calendar . getInstance ( ) ;