Buggy code:
public class DurationFormatUtilsTest { @ Test public void testConstructor ( ) { } @ Test public void testFormatDurationWords ( ) { } @ Test public void testFormatDurationPluralWords ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testFormatNegativeDurationWords ( ) throws Exception { } @ Test public void testFormatDurationHMS ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testFormatNegativeDurationHMS ( ) throws Exception { } @ Test public void testFormatDurationISO ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testFormatNegativeDurationISO ( ) throws Exception { } @ Test public void testFormatDuration ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testFormatNegativeDuration ( ) throws Exception { } @ Test public void testFormatPeriodISO ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testFormatPeriodISOStartGreaterEnd ( ) throws Exception { } @ Test public void testFormatPeriodISOMethod ( ) { } @ Test public void testFormatPeriod ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testFormatPeriodeStartGreaterEnd ( ) throws Exception { } @ Test 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 , 2 ) , new DurationFormatUtils . Token ( new StringBuilder ( ":" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . m , 2 ) , new DurationFormatUtils . Token ( new StringBuilder ( ":" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . s , 2 ) , new DurationFormatUtils . Token ( new StringBuilder ( "." ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . S , 3 ) } , DurationFormatUtils . lexx ( "HH:mm:ss.SSS" ) ) ; <START_BUG> assertArrayEquals ( new DurationFormatUtils . Token [ ] { new DurationFormatUtils . Token ( new StringBuilder ( "P" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . y , 4 ) , new DurationFormatUtils . Token ( new StringBuilder ( "Y" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . M , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "M" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . d , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "DT" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . H , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "H" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . m , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "M" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . s , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "." ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . S , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "S" ) , 1 ) } , DurationFormatUtils . lexx ( DurationFormatUtils . ISO_EXTENDED_FORMAT_PATTERN ) ) ; <END_BUG> final 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 ) ) ) ; final DurationFormatUtils . Token numToken = new DurationFormatUtils . Token ( Integer . valueOf ( 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 ) ) ; } @ Test public void testBugzilla38401 ( ) { } @ Test public void testJiraLang281 ( ) { } @ Test public void testLANG815 ( ) { } @ Test public void testLowDurations ( ) { } @ Test public void testEdgeDurations ( ) { } @ Test public void testLANG984 ( ) { } @ Test public void testLANG982 ( ) { } @ Test public void testDurationsByBruteForce ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testLANG981 ( ) { } private static final int FOUR_YEARS = ( 365 * 3 ) + 366 ; private void bruteForce ( final int year , final int month , final int day , final String format , final int calendarType ) { } private void assertEqualDuration ( final String expected , final int [ ] start , final int [ ] end , final String format ) { } private void assertEqualDuration ( final String message , final String expected , final int [ ] start , final int [ ] end , final String format ) { } }

Fix:
assertArrayEquals ( new DurationFormatUtils . Token [ ] { new DurationFormatUtils . Token ( new StringBuilder ( "P" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . y , 4 ) , new DurationFormatUtils . Token ( new StringBuilder ( "Y" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . M , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "M" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . d , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "DT" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . H , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "H" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . m , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "M" ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . s , 1 ) , new DurationFormatUtils . Token ( new StringBuilder ( "." ) , 1 ) , new DurationFormatUtils . Token ( DurationFormatUtils . S , 3 ) , new DurationFormatUtils . Token ( new StringBuilder ( "S" ) , 1 ) } , DurationFormatUtils . lexx ( DurationFormatUtils . ISO_EXTENDED_FORMAT_PATTERN ) ) ;