Buggy code:
public class DurationFormatUtilsTest extends TestCase { public static void main ( String [ ] args ) { } public static Test suite ( ) { } public DurationFormatUtilsTest ( String s ) { } public void testConstructor ( ) { } public void testFormatDurationWords ( ) { } 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 ( 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 ( ) ) ) ) ; <START_BUG> 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 ( new Object ( ) , 1 ) ) ) ; <END_BUG> DurationFormatUtils . Token numToken = new DurationFormatUtils . Token ( new Integer ( 1 ) , 4 ) ; 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 ) ) ; } private void assertArrayEquals ( DurationFormatUtils [ ] obj1 , DurationFormatUtils [ ] obj2 ) { } }

Fix:
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 ) ) ) ;