Program: 28805
Project: 28805
Buggy source:
@Test public void simpleTempRecursiveTransferDirOnlyTest() throws Exception {
  final String DIR="String_Node_Str";
  final String Y_SUBDIR="String_Node_Str";
  final String Z_SUBDIR="String_Node_Str";
  final List<String> desiredResultsNamePrefixes=new ArrayList<String>();
  final File origDir=File.createTempFile("String_Node_Str","String_Node_Str");
  origDir.delete();
  origDir.mkdir();
  final File dir=new File(origDir,DIR);
  dir.mkdir();
  final File ySubdir=new File(dir,Y_SUBDIR);
  ySubdir.mkdir();
  final File zSubdir=new File(ySubdir,Z_SUBDIR);
  zSubdir.mkdir();
  File targetDir=null;
  try {
    targetDir=File.createTempFile("String_Node_Str","String_Node_Str");
    targetDir.delete();
    targetDir.mkdir();
    desiredResultsNamePrefixes.add("String_Node_Str");
    desiredResultsNamePrefixes.add("String_Node_Str");
    desiredResultsNamePrefixes.add("String_Node_Str");
    new CommonTempTest(){
      @Override protected void addParts(      Outbound ob,      PayloadFilesManager instance) throws Exception {
        ob.attachFile("String_Node_Str",URI.create(DIR),"String_Node_Str",dir,true);
      }
      @Override protected void checkResults(      Inbound ib,      PayloadFilesManager instance) throws Exception {
        final List<File> files=instance.processParts(ib);
        checkNextFile:         for (        File f : files) {
          for (ListIterator<String> it=desiredResultsNamePrefixes.listIterator(); it.hasNext(); ) {
            final String desiredPrefix=it.next().replace("String_Node_Str",File.separator);
            if (f.getPath().contains(desiredPrefix)) {
              it.remove();
              continue checkNextFile;
            }
          }
        }
        assertEquals("String_Node_Str",Collections.EMPTY_LIST,desiredResultsNamePrefixes);
      }
      @Override protected void cleanup(){
      }
    }
.run("String_Node_Str");
  }
  finally {
    if (targetDir != null) {
      FileUtils.whack(targetDir);
    }
  }
}

Fixed version (ground truth):
@Test public void simpleTempRecursiveTransferDirOnlyTest() throws Exception {
  final String DIR="String_Node_Str";
  final String Y_SUBDIR="String_Node_Str";
  final String Z_SUBDIR="String_Node_Str";
  final List<String> desiredResultsNamePrefixes=new ArrayList<String>();
  final File origDir=File.createTempFile("String_Node_Str","String_Node_Str");
  origDir.delete();
  origDir.mkdir();
  final File dir=new File(origDir,DIR);
  dir.mkdir();
  final File ySubdir=new File(dir,Y_SUBDIR);
  ySubdir.mkdir();
  final File zSubdir=new File(ySubdir,Z_SUBDIR);
  zSubdir.mkdir();
  File targetDir=null;
  try {
    targetDir=File.createTempFile("String_Node_Str","String_Node_Str");
    targetDir.delete();
    targetDir.mkdir();
    desiredResultsNamePrefixes.add("String_Node_Str");
    desiredResultsNamePrefixes.add("String_Node_Str");
    desiredResultsNamePrefixes.add("String_Node_Str");
    new CommonTempTest(){
      @Override protected void addParts(      Outbound ob,      PayloadFilesManager instance) throws Exception {
        ob.attachFile("String_Node_Str",URI.create(DIR),"String_Node_Str",dir,true);
      }
      @Override protected void checkResults(      Inbound ib,      PayloadFilesManager instance) throws Exception {
        final List<File> files=instance.processParts(ib);
        checkNextFile:         for (        File f : files) {
          for (ListIterator<String> it=desiredResultsNamePrefixes.listIterator(); it.hasNext(); ) {
            final String desiredPrefix=it.next().replace("String_Node_Str",File.separator);
            if (f.getPath().contains(desiredPrefix)) {
              it.remove();
              continue checkNextFile;
            }
          }
        }
        assertEquals("String_Node_Str",Collections.EMPTY_LIST,desiredResultsNamePrefixes);
      }
      @Override protected void doCleanup(){
        PayloadFilesManagerTest.cleanup(origDir);
      }
    }
.run("String_Node_Str");
  }
  finally {
    if (targetDir != null) {
      FileUtils.whack(targetDir);
    }
  }
}