Buggy code:
public class StrBuilderTest extends TestCase { public StrBuilderTest ( String name ) { } public void testConstructors ( ) { } public void testChaining ( ) { } public void testGetSetNewLineText ( ) { } public void testGetSetNullText ( ) { } public void testCapacityAndLength ( ) { } public void testLength ( ) { } public void testSetLength ( ) { } public void testCapacity ( ) { } public void testEnsureCapacity ( ) { } public void testMinimizeCapacity ( ) { } public void testSize ( ) { } public void testIsEmpty ( ) { } public void testClear ( ) { } public void testCharAt ( ) { } public void testSetCharAt ( ) { } public void testDeleteCharAt ( ) { } public void testToCharArray ( ) { } public void testToCharArrayIntInt ( ) { } public void testGetChars ( ) { } public void testGetCharsIntIntCharArrayInt ( ) { } public void testDeleteIntInt ( ) { } public void testDeleteAll_char ( ) { } public void testDeleteFirst_char ( ) { } public void testDeleteAll_String ( ) { } public void testDeleteFirst_String ( ) { } public void testDeleteAll_StrMatcher ( ) { } public void testDeleteFirst_StrMatcher ( ) { } public void testReplace_int_int_String ( ) { } public void testReplaceAll_char_char ( ) { } public void testReplaceFirst_char_char ( ) { } public void testReplaceAll_String_String ( ) { } public void testReplaceFirst_String_String ( ) { } public void testReplaceAll_StrMatcher_String ( ) { } public void testReplaceFirst_StrMatcher_String ( ) { } public void testReplace_StrMatcher_String_int_int_int_VaryMatcher ( ) { } public void testReplace_StrMatcher_String_int_int_int_VaryReplace ( ) { } public void testReplace_StrMatcher_String_int_int_int_VaryStartIndex ( ) { } public void testReplace_StrMatcher_String_int_int_int_VaryEndIndex ( ) { } public void testReplace_StrMatcher_String_int_int_int_VaryCount ( ) { } public void testReverse ( ) { } public void testTrim ( ) { } public void testStartsWith ( ) { } public void testEndsWith ( ) { } public void testSubSequenceIntInt ( ) { } public void testSubstringInt ( ) { } public void testSubstringIntInt ( ) { } public void testMidString ( ) { } public void testRightString ( ) { } public void testLeftString ( ) { } public void testContains_char ( ) { } public void testContains_String ( ) { } public void testContains_StrMatcher ( ) { } public void testIndexOf_char ( ) { } public void testIndexOf_char_int ( ) { } public void testLastIndexOf_char ( ) { } public void testLastIndexOf_char_int ( ) { } public void testIndexOf_String ( ) { } public void testIndexOf_String_int ( ) { } public void testLastIndexOf_String ( ) { } public void testLastIndexOf_String_int ( ) { } public void testIndexOf_StrMatcher ( ) { } public void testIndexOf_StrMatcher_int ( ) { } public void testLastIndexOf_StrMatcher ( ) { } public void testLastIndexOf_StrMatcher_int ( ) { } static final StrMatcher A_NUMBER_MATCHER = new StrMatcher ( ) { @ Override public int isMatch ( char [ ] buffer , int pos , int bufferStart , int bufferEnd ) { } } ; public void testAsTokenizer ( ) throws Exception { } public void testAsReader ( ) throws Exception { } public void testAsWriter ( ) throws Exception { } public void testEqualsIgnoreCase ( ) { } public void testEquals ( ) { StrBuilder sb1 = new StrBuilder ( ) ; StrBuilder sb2 = new StrBuilder ( ) ; assertEquals ( true , sb1 . equals ( sb2 ) ) ; assertEquals ( true , sb1 . equals ( sb1 ) ) ; assertEquals ( true , sb2 . equals ( sb2 ) ) ; assertEquals ( true , sb1 . equals ( ( ( Object ) ( sb2 ) ) ) ) ; sb1 . append ( "abc" ) ; assertEquals ( false , sb1 . equals ( sb2 ) ) ; assertEquals ( false , sb1 . equals ( ( ( Object ) ( sb2 ) ) ) ) ; sb2 . append ( "ABC" ) ; assertEquals ( false , sb1 . equals ( sb2 ) ) ; assertEquals ( false , sb1 . equals ( ( ( Object ) ( sb2 ) ) ) ) ; sb2 . clear ( ) . append ( "abc" ) ; assertEquals ( true , sb1 . equals ( sb2 ) ) ; assertEquals ( true , sb1 . equals ( ( ( Object ) ( sb2 ) ) ) ) ; <START_BUG> assertEquals ( false , sb1 . equals ( new Integer ( 1 ) ) ) ; <END_BUG> assertEquals ( false , sb1 . equals ( "abc" ) ) ; } public void testHashCode ( ) { } public void testToString ( ) { } public void testToStringBuffer ( ) { } public void testLang294 ( ) { } public void testIndexOfLang294 ( ) { } public void testLang295 ( ) { } public void testLang412Right ( ) { } public void testLang412Left ( ) { } }

Fix:
assertEquals ( false , sb1 . equals ( Integer . valueOf ( 1 ) ) ) ;