Buggy code:
public class DurationFormatUtilsTest extends TestCase { public DurationFormatUtilsTest ( String s ) { } public void testConstructor ( ) { } public void testFormatDurationWords ( ) { } public void testFormatDurationPluralWords ( ) { } public void testFormatDurationHMS ( ) { } public void testFormatDurationISO ( ) { } public void testFormatDuration ( ) { } public void testFormatPeriodISO ( ) { } public void testFormatPeriod ( ) { } public void testLexx ( ) { assertArrayEquals ( new DurationFormatUtils . Token [ ] { new DurationFormatUtils . Token ( DurationFormatUtils . y , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . M , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . d , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . H , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . m , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . s , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . S , 1 ) } , DurationFormatUtils . lexx ( "yMdHmsS" ) ) ; assertArrayEquals ( new DurationFormatUtils . Token [ ] { new DurationFormatUtils . Token ( DurationFormatUtils . H , 1 ) , new DurationFormatUtils . Token ( new StringBuffer ( ":" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . m , 2 ) , new DurationFormatUtils . Token ( new StringBuffer ( ":" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . s , 2 ) , new DurationFormatUtils . Token ( new StringBuffer ( "." ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . S , 3 ) } , DurationFormatUtils . lexx ( "H:mm:ss.SSS" ) ) ; assertArrayEquals ( new DurationFormatUtils . Token [ ] { new DurationFormatUtils . Token ( new StringBuffer ( "P" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . y , 4 ) , new DurationFormatUtils . Token ( new StringBuffer ( "Y" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . M , 1 ) , new DurationFormatUtils . Token ( new StringBuffer ( "M" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . d , 1 ) , new DurationFormatUtils . Token ( new StringBuffer ( "DT" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . H , 1 ) , new DurationFormatUtils . Token ( new StringBuffer ( "H" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . m , 1 ) , new DurationFormatUtils . Token ( new StringBuffer ( "M" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . s , 1 ) , new DurationFormatUtils . Token ( new StringBuffer ( "." ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . S , 1 ) , new DurationFormatUtils . Token ( new StringBuffer ( "S" ) , 1 ) } , DurationFormatUtils . lexx ( DurationFormatUtils . ISO_EXTENDED_FORMAT_PATTERN ) ) ; DurationFormatUtils . Token token = new DurationFormatUtils . Token ( DurationFormatUtils . y , 4 ) ; assertFalse ( "Token<seq2seq4repair_space>equal<seq2seq4repair_space>to<seq2seq4repair_space>non-Token<seq2seq4repair_space>class.<seq2seq4repair_space>" , token . equals ( new Object ( ) ) ) ; assertFalse ( "Token<seq2seq4repair_space>equal<seq2seq4repair_space>to<seq2seq4repair_space>Token<seq2seq4repair_space>with<seq2seq4repair_space>wrong<seq2seq4repair_space>value<seq2seq4repair_space>class.<seq2seq4repair_space>" , token . equals ( new DurationFormatUtils . Token ( new Object ( ) ) ) ) ; assertFalse ( "Token<seq2seq4repair_space>equal<seq2seq4repair_space>to<seq2seq4repair_space>Token<seq2seq4repair_space>with<seq2seq4repair_space>different<seq2seq4repair_space>count.<seq2seq4repair_space>" , token . equals ( new DurationFormatUtils . Token ( DurationFormatUtils . y , 1 ) ) ) ; <START_BUG> DurationFormatUtils . Token numToken = new DurationFormatUtils . Token ( new Integer ( 1 ) , 4 ) ; <END_BUG> assertTrue ( "Token<seq2seq4repair_space>with<seq2seq4repair_space>Number<seq2seq4repair_space>value<seq2seq4repair_space>not<seq2seq4repair_space>equal<seq2seq4repair_space>to<seq2seq4repair_space>itself.<seq2seq4repair_space>" , numToken . equals ( numToken ) ) ; } public void testBugzilla38401 ( ) { } public void testJiraLang281 ( ) { } public void testLowDurations ( ) { } public void testEdgeDurations ( ) { } public void testDurationsByBruteForce ( ) { } private static final int FOUR_YEARS = ( 365 * 3 ) + 366 ; private void bruteForce ( int year , int month , int day , String format , int calendarType ) { } private void assertEqualDuration ( String expected , int [ ] start , int [ ] end , String format ) { } private void assertEqualDuration ( String message , String expected , int [ ] start , int [ ] end , String format ) { } private void assertArrayEquals ( DurationFormatUtils . Token [ ] obj1 , DurationFormatUtils . Token [ ] obj2 ) { } }

Fix:
DurationFormatUtils . Token numToken = new DurationFormatUtils . Token ( Integer . valueOf ( 1 ) , 4 ) ;