Buggy code:
public void testGetUserDirectory ( ) { } public void test_openInputStream_exists ( ) throws Exception { } public void test_openInputStream_existsButIsDirectory ( ) throws Exception { } public void test_openInputStream_notExists ( ) throws Exception { } void openOutputStream_noParent ( boolean createFile ) throws Exception { } public void test_openOutputStream_noParentCreateFile ( ) throws Exception { } public void test_openOutputStream_noParentNoFile ( ) throws Exception { } public void test_openOutputStream_exists ( ) throws Exception { } public void test_openOutputStream_existsButIsDirectory ( ) throws Exception { } public void test_openOutputStream_notExists ( ) throws Exception { } public void test_openOutputStream_notExistsCannotCreate ( ) throws Exception { } public void testByteCountToDisplaySize ( ) { } public void testToFile1 ( ) throws Exception { } public void testToFile2 ( ) throws Exception { } public void testToFile3 ( ) throws Exception { } public void testToFile4 ( ) throws Exception { } public void testToFile5 ( ) throws Exception { } public void testToFileUtf8 ( ) throws Exception { } public void testDecodeUrl ( ) { } public void testDecodeUrlLenient ( ) { } public void testDecodeUrlNullSafe ( ) { } public void testDecodeUrlEncodingUtf8 ( ) { } public void testToFiles1 ( ) throws Exception { } public void testToFiles2 ( ) throws Exception { } public void testToFiles3 ( ) throws Exception { } public void testToFiles4 ( ) throws Exception { } public void testToURLs1 ( ) throws Exception { } public void testContentEquals ( ) throws Exception { } public void testContentEqualsIgnoreEOL ( ) throws Exception { } public void testCopyURLToFile ( ) throws Exception { } public void testCopyURLToFileWithTimeout ( ) throws Exception { } public void testForceMkdir ( ) throws Exception { } public void testSizeOfDirectory ( ) throws Exception { } public void testSizeOf ( ) throws Exception { } public void testIsFileNewerOlder ( ) throws Exception { } public void testCopyFile1 ( ) throws Exception { } public void testCopyFileToOutputStream ( ) throws Exception { } public void IGNOREtestCopyFileLarge ( ) throws Exception { } public void testCopyFile2 ( ) throws Exception { } public void testCopyToSelf ( ) throws Exception { } public void testCopyFile2WithoutFileDatePreservation ( ) throws Exception { } public void testCopyDirectoryToDirectory_NonExistingDest ( ) throws Exception { } public void testCopyDirectoryToNonExistingDest ( ) throws Exception { } public void testCopyDirectoryToExistingDest ( ) throws Exception { } public void testCopyDirectoryFiltered ( ) throws Exception { } public void testCopyDirectoryPreserveDates ( ) throws Exception { } public void testCopyDirectoryToChild ( ) throws Exception { } public void testCopyDirectoryToGrandChild ( ) throws Exception { } public void testCopyDirectoryToItself ( ) throws Exception { } private void createFilesForTestCopyDirectory ( File grandParentDir , File parentDir , File childDir ) throws Exception { } public void testCopyDirectoryErrors ( ) throws Exception { } public void testForceDeleteAFile1 ( ) throws Exception { } public void testForceDeleteAFile2 ( ) throws Exception { } public void testForceDeleteAFile3 ( ) throws Exception { } public void testCopyFile1ToDir ( ) throws Exception { } public void testCopyFile2ToDir ( ) throws Exception { } public void testForceDeleteDir ( ) throws Exception { } public void testFileUtils ( ) throws Exception { File file1 = new File ( getTestDirectory ( ) , "test.txt" ) ; String filename = file1 . getAbsolutePath ( ) ; OutputStream out = new FileOutputStream ( file1 ) ; try { out . write ( "This<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>test" . getBytes ( "UTF-8" ) ) ; } finally { out . close ( ) ; } File file2 = new File ( getTestDirectory ( ) , "test2.txt" ) ; FileUtils . writeStringToFile ( file2 , filename , "UTF-8" ) ; assertTrue ( file2 . exists ( ) ) ; assertTrue ( ( ( file2 . length ( ) ) > 0 ) ) ; String file2contents = FileUtils . readFileToString ( file2 , "UTF-8" ) ; assertTrue ( "Second<seq2seq4repair_space>file's<seq2seq4repair_space>contents<seq2seq4repair_space>correct" , filename . equals ( file2contents ) ) ; assertTrue ( file2 . delete ( ) ) ; String contents = FileUtils . readFileToString ( new File ( filename ) , "UTF-8" ) ; <START_BUG> assertTrue ( "FileUtils.fileRead()" , contents . equals ( "This<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>test" ) ) ; <END_BUG> } public void testTouch ( ) throws IOException { } public void testListFiles ( ) throws Exception { } public void testListFilesWithDirs ( ) throws IOException { } public void testIterateFiles ( ) throws Exception { } public void testIterateFilesAndDirs ( ) throws IOException { } public void testReadFileToStringWithDefaultEncoding ( ) throws Exception { } public void testReadFileToStringWithEncoding ( ) throws Exception { } public void testReadFileToByteArray ( ) throws Exception { } public void testReadLines ( ) throws Exception { } public void testWriteStringToFile1 ( ) throws Exception { } public void testWriteStringToFile2 ( ) throws Exception { } public void testWriteCharSequence1 ( ) throws Exception { } public void testWriteCharSequence2 ( ) throws Exception { } public void testWriteByteArrayToFile ( ) throws Exception { } public void testWriteLines_4arg ( ) throws Exception { } public void testWriteLines_4arg_Writer_nullData ( ) throws Exception { } public void testWriteLines_4arg_nullSeparator ( ) throws Exception { } public void testWriteLines_3arg_nullSeparator ( ) throws Exception { } public void testWriteLines_5argsWithAppendOptionTrue_ShouldNotDeletePreviousFileLines ( ) throws Exception { } public void testWriteLines_5argsWithAppendOptionFalse_ShouldDeletePreviousFileLines ( ) throws Exception { } public void testWriteLines_4argsWithAppendOptionTrue_ShouldNotDeletePreviousFileLines ( ) throws Exception { } public void testWriteLines_4argsWithAppendOptionFalse_ShouldDeletePreviousFileLines ( ) throws Exception { } public void testWriteLinesEncoding_WithAppendOptionTrue_ShouldNotDeletePreviousFileLines ( ) throws Exception { } public void testWriteLinesEncoding_WithAppendOptionFalse_ShouldDeletePreviousFileLines ( ) throws Exception { } public void testWriteLines_3argsWithAppendOptionTrue_ShouldNotDeletePreviousFileLines ( ) throws Exception { } public void testWriteLines_3argsWithAppendOptionFalse_ShouldDeletePreviousFileLines ( ) throws Exception { } public void testWriteStringToFileWithEncoding_WithAppendOptionTrue_ShouldNotDeletePreviousFileLines ( ) throws Exception { } public void testWriteStringToFileWithEncoding_WithAppendOptionFalse_ShouldDeletePreviousFileLines ( ) throws Exception { } public void testWriteStringToFile_WithAppendOptionTrue_ShouldNotDeletePreviousFileLines ( ) throws Exception { } public void testWriteStringToFile_WithAppendOptionFalse_ShouldDeletePreviousFileLines ( ) throws Exception { } public void testWriteWithEncoding_WithAppendOptionTrue_ShouldNotDeletePreviousFileLines ( ) throws Exception { } public void testWriteWithEncoding_WithAppendOptionFalse_ShouldDeletePreviousFileLines ( ) throws Exception { } public void testWrite_WithAppendOptionTrue_ShouldNotDeletePreviousFileLines ( ) throws Exception { } public void testWrite_WithAppendOptionFalse_ShouldDeletePreviousFileLines ( ) throws Exception { } public void testWriteByteArrayToFile_WithAppendOptionTrue_ShouldNotDeletePreviousFileLines ( ) throws Exception { }

Fix:
assertEquals ( "FileUtils.fileRead()" , "This<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>test" , contents ) ;