Program: 109593
Project: 109593
Buggy source:
@Test public void testJavaMethodModel(){
  ConfigurationBuilder.begin().addRule().when(GraphSearchConditionBuilder.create("String_Node_Str").has(JavaClassModel.class).withProperty("String_Node_Str",GraphSearchPropertyComparisonType.REGEX,"String_Node_Str")).perform(Iteration.query(GraphSearchConditionBuilderGremlin.create().withCriterion(new GraphSearchGremlinCriterion(){
    @Override public void query(    GremlinPipeline<Vertex,Vertex> pipeline){
      pipeline.out("String_Node_Str").has("String_Node_Str","String_Node_Str");
    }
  }
),"String_Node_Str","String_Node_Str").perform(new GraphOperation(){
    @Override public void perform(    GraphRewrite event,    EvaluationContext context){
      SelectionFactory selection=SelectionFactory.instance(event);
      JavaMethodModel methodModel=selection.getCurrentPayload(JavaMethodModel.class);
      LOG.info("String_Node_Str" + methodModel.getMethodName() + "String_Node_Str"+ methodModel.getJavaClass().getQualifiedName());
    }
  }
));
}

Fixed version (ground truth):
@Test public void testJavaMethodModel(){
  final File folder=OperatingSystemUtils.createTempDir();
  final GraphContext context=new GraphContextImpl(folder,graphTypeRegistry);
  GraphRewrite event=new GraphRewrite(context);
  final DefaultEvaluationContext evaluationContext=new DefaultEvaluationContext();
  final DefaultParameterValueStore values=new DefaultParameterValueStore();
  evaluationContext.put(ParameterValueStore.class,values);
  event.getRewriteContext().put(SelectionFactory.class,selectionFactory);
  JavaClassModel classModel1=context.getFramed().addVertex(null,JavaClassModel.class);
  classModel1.setQualifiedName("String_Node_Str");
  JavaClassModel classModel2=context.getFramed().addVertex(null,JavaClassModel.class);
  classModel2.setQualifiedName("String_Node_Str");
  JavaMethodModel methodModelSomeMethod=context.getFramed().addVertex(null,JavaMethodModel.class);
  methodModelSomeMethod.setJavaClass(classModel2);
  methodModelSomeMethod.setMethodName("String_Node_Str");
  JavaMethodModel methodModelToString=context.getFramed().addVertex(null,JavaMethodModel.class);
  methodModelToString.setJavaClass(classModel2);
  methodModelToString.setMethodName("String_Node_Str");
  final List<MavenFacetModel> typeSearchResults=new ArrayList<>();
  Configuration configuration=ConfigurationBuilder.begin().addRule().when(GraphSearchConditionBuilder.create("String_Node_Str").has(JavaClassModel.class).withProperty("String_Node_Str",GraphSearchPropertyComparisonType.REGEX,"String_Node_Str")).perform(Iteration.query(GraphSearchConditionBuilderGremlin.create().withCriterion(new GraphSearchGremlinCriterion(){
    @Override public void query(    GremlinPipeline<Vertex,Vertex> pipeline){
      pipeline.out("String_Node_Str").has("String_Node_Str","String_Node_Str");
    }
  }
),"String_Node_Str","String_Node_Str").perform(new GraphOperation(){
    @Override public void perform(    GraphRewrite event,    EvaluationContext context){
      SelectionFactory selection=SelectionFactory.instance(event);
      JavaMethodModel methodModel=selection.getCurrentPayload(JavaMethodModel.class);
      LOG.info("String_Node_Str" + methodModel.getMethodName() + "String_Node_Str"+ methodModel.getJavaClass().getQualifiedName());
    }
  }
));
  Subset.evaluate(configuration).perform(event,evaluationContext);
}