Program: 25265
Project: 25265
Buggy source:
public void testScannedPathsMultipleJarGlobOrder() throws Exception {
  ScannedPaths sc;
  Iterator<String> iter=null;
  String tempPath="String_Node_Str";
  String filenameA="String_Node_Str";
  String filenameB="String_Node_Str";
  String filenameC="String_Node_Str";
  String fileRegex1=tempPath + "String_Node_Str";
  String fileRegex2=tempPath + "String_Node_Str";
  try {
    createTempDirStructure1(tempPath);
    sc=new ScannedPaths(fileRegex1,"String_Node_Str");
    Assert.assertEquals(Iterators.size(sc.iterator()),2,"String_Node_Str");
    iter=sc.iterator();
    Assert.assertTrue(iter.next().contains(filenameC));
    Assert.assertTrue(iter.next().contains(filenameA));
    sc=new ScannedPaths(fileRegex2,"String_Node_Str");
    Assert.assertEquals(Iterators.size(sc.iterator()),7,"String_Node_Str");
    iter=sc.iterator();
    Assert.assertTrue(iter.next().contains(filenameB));
    Assert.assertTrue(iter.next().contains(filenameA));
    Assert.assertTrue(iter.next().contains(filenameC));
    Assert.assertTrue(iter.next().contains(filenameC));
    Assert.assertTrue(iter.next().contains(filenameC + "String_Node_Str"));
    Assert.assertTrue(iter.next().contains(filenameA));
    Assert.assertTrue(iter.next().contains(filenameA));
    FileUtils.deleteQuietly(new File(tempPath + "String_Node_Str"));
    FileUtils.deleteQuietly(new File(tempPath + "String_Node_Str"));
    FileUtils.deleteQuietly(new File(tempPath + "String_Node_Str"));
    sc=new ScannedPaths(fileRegex1,"String_Node_Str");
    Assert.assertEquals(Iterators.size(sc.iterator()),2,"String_Node_Str");
    iter=sc.iterator();
    Assert.assertTrue(iter.next().contains(filenameC));
    Assert.assertTrue(iter.next().contains(filenameA));
    sc=new ScannedPaths(fileRegex2,"String_Node_Str");
    Assert.assertEquals(Iterators.size(sc.iterator()),12,"String_Node_Str");
    iter=sc.iterator();
    Assert.assertTrue(iter.next().contains(filenameC));
    Assert.assertTrue(iter.next().contains(filenameB));
    Assert.assertTrue(iter.next().contains(filenameA));
    Assert.assertTrue(iter.next().contains(filenameC));
    Assert.assertTrue(iter.next().contains(filenameC));
    Assert.assertTrue(iter.next().contains(filenameB));
    Assert.assertTrue(iter.next().contains(filenameA));
    Assert.assertTrue(iter.next().contains(filenameC));
    Assert.assertTrue(iter.next().contains(filenameC + "String_Node_Str"));
    Assert.assertTrue(iter.next().contains(filenameC + "String_Node_Str"));
    Assert.assertTrue(iter.next().contains(filenameC + "String_Node_Str"));
    Assert.assertTrue(iter.next().contains(filenameA));
  }
 catch (  Exception e) {
    Assert.fail("String_Node_Str" + e.getMessage());
  }
 finally {
    FileUtils.deleteQuietly(new File(tempPath));
  }
}

Fixed version (ground truth):
public void testScannedPathsMultipleJarGlobOrder() throws Exception {
  ScannedPaths sc;
  String tempPath="String_Node_Str";
  String filenameAJar="String_Node_Str";
  String filenameBJar="String_Node_Str";
  String filenameCJar="String_Node_Str";
  String filenameCDupJar="String_Node_Str";
  String filenameCDupJar2="String_Node_Str";
  String filenameAData="String_Node_Str";
  String filenameBData="String_Node_Str";
  String filenameCData="String_Node_Str";
  String fileRegex1=tempPath + "String_Node_Str";
  String fileRegex2=tempPath + "String_Node_Str";
  try {
    createTempDirStructure1(tempPath);
    sc=new ScannedPaths(fileRegex1,"String_Node_Str");
    assertUnOrdered(sc,filenameCJar,filenameAJar);
    sc=new ScannedPaths(fileRegex2,"String_Node_Str");
    assertUnOrdered(sc,filenameBJar,filenameAJar,filenameCJar,filenameCJar,filenameCDupJar,filenameAJar,filenameAJar);
    FileUtils.deleteQuietly(new File(tempPath + "String_Node_Str"));
    FileUtils.deleteQuietly(new File(tempPath + "String_Node_Str"));
    FileUtils.deleteQuietly(new File(tempPath + "String_Node_Str"));
    sc=new ScannedPaths(fileRegex1,"String_Node_Str");
    assertUnOrdered(sc,filenameCJar,filenameAJar);
    sc=new ScannedPaths(fileRegex2,"String_Node_Str");
    assertUnOrdered(sc,filenameCData,filenameBJar,filenameAJar,filenameCJar,filenameCJar,filenameBData,filenameAData,filenameCJar,filenameCDupJar,filenameCDupJar2,filenameCDupJar,filenameAJar);
  }
 catch (  Exception e) {
    Assert.fail("String_Node_Str" + e.getMessage());
  }
 finally {
    FileUtils.deleteQuietly(new File(tempPath));
  }
}