Program: 109527
Project: 109527
Buggy source:
@Test public void testJavaClassCondition() throws IOException, InstantiationException, IllegalAccessException {
  try (GraphContext context=factory.create(getDefaultPath())){
    final String inputDir="String_Node_Str";
    final Path outputPath=Paths.get(FileUtils.getTempDirectory().toString(),"String_Node_Str" + RandomStringUtils.randomAlphanumeric(6));
    FileUtils.deleteDirectory(outputPath.toFile());
    Files.createDirectories(outputPath);
    ProjectModel pm=context.getFramed().addVertex(null,ProjectModel.class);
    pm.setName("String_Node_Str");
    FileModel inputPathFrame=context.getFramed().addVertex(null,FileModel.class);
    inputPathFrame.setFilePath(inputDir);
    inputPathFrame.setProjectModel(pm);
    pm.addFileModel(inputPathFrame);
    pm.setRootFileModel(inputPathFrame);
    FileModel fileModel=context.getFramed().addVertex(null,FileModel.class);
    fileModel.setFilePath(inputDir + "String_Node_Str");
    fileModel.setProjectModel(pm);
    pm.addFileModel(fileModel);
    fileModel=context.getFramed().addVertex(null,FileModel.class);
    fileModel.setFilePath(inputDir + "String_Node_Str");
    fileModel.setProjectModel(pm);
    pm.addFileModel(fileModel);
    context.getGraph().getBaseGraph().commit();
    final WindupConfiguration processorConfig=new WindupConfiguration().setOutputDirectory(outputPath);
    processorConfig.setGraphContext(context);
    processorConfig.setInputPath(Paths.get(inputDir));
    processorConfig.setOutputDirectory(outputPath);
    processorConfig.setOptionValue(ScanPackagesOption.NAME,Collections.singletonList("String_Node_Str"));
    processor.execute(processorConfig);
    GraphService<JavaTypeReferenceModel> typeRefService=new GraphService<>(context,JavaTypeReferenceModel.class);
    Iterable<JavaTypeReferenceModel> typeReferences=typeRefService.findAll();
    int count=0;
    for (    JavaTypeReferenceModel ref : typeReferences) {
      Assert.assertTrue(ref.getSourceSnippit().contains("String_Node_Str"));
      count++;
    }
    Assert.assertEquals(5,count);
    GraphService<InlineHintModel> hintService=new GraphService<>(context,InlineHintModel.class);
    Iterable<InlineHintModel> hints=hintService.findAll();
    count=0;
    for (    InlineHintModel hint : hints) {
      if (hint.getHint().contains("String_Node_Str"))       count++;
    }
    Assert.assertEquals(3,count);
    count=0;
    for (    InlineHintModel hint : hints) {
      if (hint.getHint().contains("String_Node_Str"))       count++;
    }
    Assert.assertEquals(1,count);
  }
 }

Fixed version (ground truth):
@Test public void testJavaClassCondition() throws IOException, InstantiationException, IllegalAccessException {
  try (GraphContext context=factory.create(getDefaultPath())){
    final String inputDir="String_Node_Str";
    final Path outputPath=Paths.get(FileUtils.getTempDirectory().toString(),"String_Node_Str" + RandomStringUtils.randomAlphanumeric(6));
    FileUtils.deleteDirectory(outputPath.toFile());
    Files.createDirectories(outputPath);
    ProjectModel pm=context.getFramed().addVertex(null,ProjectModel.class);
    pm.setName("String_Node_Str");
    FileModel inputPathFrame=context.getFramed().addVertex(null,FileModel.class);
    inputPathFrame.setFilePath(inputDir);
    inputPathFrame.setProjectModel(pm);
    pm.addFileModel(inputPathFrame);
    pm.setRootFileModel(inputPathFrame);
    FileModel fileModel=context.getFramed().addVertex(null,FileModel.class);
    fileModel.setFilePath(inputDir + "String_Node_Str");
    fileModel.setProjectModel(pm);
    pm.addFileModel(fileModel);
    fileModel=context.getFramed().addVertex(null,FileModel.class);
    fileModel.setFilePath(inputDir + "String_Node_Str");
    fileModel.setProjectModel(pm);
    pm.addFileModel(fileModel);
    context.getGraph().getBaseGraph().commit();
    final WindupConfiguration processorConfig=new WindupConfiguration().setOutputDirectory(outputPath);
    processorConfig.setGraphContext(context);
    processorConfig.setInputPath(Paths.get(inputDir));
    processorConfig.setOutputDirectory(outputPath);
    processorConfig.setOptionValue(ScanPackagesOption.NAME,Collections.singletonList("String_Node_Str"));
    processor.execute(processorConfig);
    GraphService<JavaTypeReferenceModel> typeRefService=new GraphService<>(context,JavaTypeReferenceModel.class);
    Iterable<JavaTypeReferenceModel> typeReferences=typeRefService.findAll();
    int count=0;
    for (    JavaTypeReferenceModel ref : typeReferences) {
      String sourceSnippit=ref.getSourceSnippit();
      Assert.assertTrue(sourceSnippit.contains("String_Node_Str") || sourceSnippit.contains("String_Node_Str"));
      count++;
    }
    Assert.assertEquals(7,count);
    GraphService<InlineHintModel> hintService=new GraphService<>(context,InlineHintModel.class);
    Iterable<InlineHintModel> hints=hintService.findAll();
    count=0;
    for (    InlineHintModel hint : hints) {
      if (hint.getHint().contains("String_Node_Str"))       count++;
    }
    Assert.assertEquals(3,count);
    count=0;
    for (    InlineHintModel hint : hints) {
      if (hint.getHint().contains("String_Node_Str"))       count++;
    }
    Assert.assertEquals(1,count);
  }
 }