Buggy code:
public final class ChangeSetTestCase extends AbstractTestCase { private void archiveListDeleteDir ( String prefix ) { } private void archiveListDelete ( String prefix ) { } public void testAddChangeTwice ( ) throws Exception { } public void testAddChangeTwiceWithoutReplace ( ) throws Exception { } public void testDeleteDir ( ) throws Exception { } public void testDeleteDir2 ( ) throws Exception { } public void testDeleteDir3 ( ) throws Exception { } public void testDeleteFile ( ) throws Exception { } public void testDeleteFile2 ( ) throws Exception { } public void testDeletePlusAddSame ( ) throws Exception { } public void testChangeSetResults ( ) throws Exception { final String archivename = "cpio" ; File input = this . createArchive ( archivename ) ; ArchiveOutputStream out = null ; ArchiveInputStream ais = null ; File result = File . createTempFile ( "test" , ( "." + archivename ) ) ; result . deleteOnExit ( ) ; try { final InputStream is = new FileInputStream ( input ) ; ais = factory . createArchiveInputStream ( archivename , is ) ; out = factory . createArchiveOutputStream ( archivename , new FileOutputStream ( result ) ) ; ChangeSet changes = new ChangeSet ( ) ; changes . deleteDir ( "bla" ) ; archiveListDeleteDir ( "bla" ) ; final File file1 = getFile ( "test.txt" ) ; ArchiveEntry entry = out . createArchiveEntry ( file1 , "bla//test.txt" ) ; changes . add ( entry , new FileInputStream ( file1 ) ) ; archiveList . add ( "bla//test.txt" ) ; ChangeSetPerformer performer = new ChangeSetPerformer ( changes ) ; ChangeSetResults results = performer . perform ( ais , out ) ; is . close ( ) ; assertEquals ( 1 , results . getAddedFromChangeSet ( ) . size ( ) ) ; <START_BUG> assertEquals ( "bla//test.txt" , ( ( String ) ( results . getAddedFromChangeSet ( ) . iterator ( ) . next ( ) ) ) ) ; <END_BUG> assertEquals ( 3 , results . getDeleted ( ) . size ( ) ) ; assertTrue ( results . getDeleted ( ) . contains ( "bla//test4.xml" ) ) ; assertTrue ( results . getDeleted ( ) . contains ( "bla//test5.xml" ) ) ; assertTrue ( results . getDeleted ( ) . contains ( "bla//blubber//test6.xml" ) ) ; assertTrue ( results . getAddedFromStream ( ) . contains ( "testdata//test1.xml" ) ) ; assertTrue ( results . getAddedFromStream ( ) . contains ( "testdata//test2.xml" ) ) ; assertTrue ( results . getAddedFromStream ( ) . contains ( "test//test3.xml" ) ) ; assertTrue ( results . getAddedFromStream ( ) . contains ( "test.txt" ) ) ; assertTrue ( results . getAddedFromStream ( ) . contains ( "something//bla" ) ) ; assertTrue ( results . getAddedFromStream ( ) . contains ( "test<seq2seq4repair_space>with<seq2seq4repair_space>spaces.txt" ) ) ; assertEquals ( 6 , results . getAddedFromStream ( ) . size ( ) ) ; } finally { if ( out != null ) out . close ( ) ; if ( ais != null ) ais . close ( ) ; } this . checkArchiveContent ( result , archiveList ) ; } public void testDeletePlusAdd ( ) throws Exception { } public void testDeleteFromAndAddToZip ( ) throws Exception { } public void testAddDeleteAdd ( ) throws Exception { } public void testDeleteAddDelete ( ) throws Exception { } public void testDeleteFromZip ( ) throws Exception { } public void testDeleteFromTar ( ) throws Exception { } public void testDeleteFromJar ( ) throws Exception { } public void testDeleteFromAndAddToTar ( ) throws Exception { } public void testDeleteFromAndAddToJar ( ) throws Exception { } public void testDeleteFromAr ( ) throws Exception { } public void testDeleteFromAndAddToAr ( ) throws Exception { } public void testRenameAndDelete ( ) throws Exception { } public void testAddMoveDelete ( ) throws Exception { } public void testAddToEmptyArchive ( ) throws Exception { } public void testDeleteAddToOneFileArchive ( ) throws Exception { } public void testAddDeleteToOneFileArchive ( ) throws Exception { } public void testAddAllreadyExistingWithReplaceTrue ( ) throws Exception { } public void testAddAllreadyExistingWithReplaceFalse ( ) throws Exception { } }

Fix:
assertEquals ( "bla//test.txt" , results . getAddedFromChangeSet ( ) . iterator ( ) . next ( ) ) ;