Program: 80483
Project: 80483
Buggy source:
@Test public void testDomainQuery_Collect_01(){
  IDomainAccess da1;
  DomainQuery q;
  DomainQueryResult result=null;
  boolean equals;
  String testId;
  String qCypher;
  Population population=new Population();
  population.createPopulation();
  da1=DomainAccessFactory.createDomainAccess(dbAccess,domainName);
  testId="String_Node_Str";
  queriesStream.reset();
  q=da1.createQuery();
  DomainObjectMatch<Subject> subjectsMatch=q.createMatch(Subject.class);
  DomainObjectMatch<Subject> subjectsMatch2=q.createMatch(Subject.class);
  q.ORDER(subjectsMatch).BY("String_Node_Str");
  subjectsMatch.setPage(0,5);
  q.ORDER(subjectsMatch2).BY("String_Node_Str");
  DomainObjectMatch<String> firstNamesMatch=q.COLLECT(subjectsMatch.atttribute("String_Node_Str")).AS(String.class);
  DomainObjectMatch<String> lastNamesMatch=q.COLLECT(subjectsMatch2.atttribute("String_Node_Str")).AS(String.class);
  CountQueryResult countResult=q.executeCount();
  result=q.execute();
  long numFirstNames=countResult.countOf(firstNamesMatch);
  long numLastNames=countResult.countOf(lastNamesMatch);
  long numSubjects=countResult.countOf(subjectsMatch);
  List<String> firstNames=result.resultOf(firstNamesMatch);
  List<String> lastNames=result.resultOf(lastNamesMatch);
  List<Subject> subjects=result.resultOf(subjectsMatch);
  testId="String_Node_Str";
  queriesStream.reset();
  q=da1.createQuery();
  DomainObjectMatch<Object> objectsMatch=q.createMatch(Object.class);
  q.WHERE(objectsMatch.atttribute("String_Node_Str")).LIKE("String_Node_Str");
  DomainObjectMatch<String> objNamesMatch=q.COLLECT(objectsMatch.atttribute("String_Node_Str")).AS(String.class);
  countResult=q.executeCount();
  result=q.execute();
  long numObjNames=countResult.countOf(objNamesMatch);
  List<String> objNames=result.resultOf(objNamesMatch);
  return;
}

Fixed version (ground truth):
@Test public void testDomainQuery_Collect_01(){
  IDomainAccess da1;
  DomainQuery q;
  DomainQueryResult result=null;
  boolean equals;
  String testId;
  String qCypher;
  Population population=new Population();
  population.createPopulation();
  da1=DomainAccessFactory.createDomainAccess(dbAccess,domainName);
  testId="String_Node_Str";
  queriesStream.reset();
  q=da1.createQuery();
  DomainObjectMatch<Subject> subjectsMatch=q.createMatch(Subject.class);
  DomainObjectMatch<Subject> subjectsMatch2=q.createMatch(Subject.class);
  q.ORDER(subjectsMatch).BY("String_Node_Str");
  q.ORDER(subjectsMatch2).BY("String_Node_Str");
  DomainObjectMatch<String> firstNamesMatch=q.COLLECT(subjectsMatch.atttribute("String_Node_Str")).AS(String.class);
  DomainObjectMatch<String> lastNamesMatch=q.COLLECT(subjectsMatch2.atttribute("String_Node_Str")).AS(String.class);
  CountQueryResult countResult=q.executeCount();
  result=q.execute();
  long numFirstNames=countResult.countOf(firstNamesMatch);
  long numLastNames=countResult.countOf(lastNamesMatch);
  long numSubjects=countResult.countOf(subjectsMatch);
  List<String> firstNames=result.resultOf(firstNamesMatch);
  List<String> lastNames=result.resultOf(lastNamesMatch);
  List<Subject> subjects=result.resultOf(subjectsMatch);
  testId="String_Node_Str";
  queriesStream.reset();
  q=da1.createQuery();
  DomainObjectMatch<Object> objectsMatch=q.createMatch(Object.class);
  q.WHERE(objectsMatch.atttribute("String_Node_Str")).LIKE("String_Node_Str");
  DomainObjectMatch<String> objNamesMatch=q.COLLECT(objectsMatch.atttribute("String_Node_Str")).AS(String.class);
  countResult=q.executeCount();
  result=q.execute();
  long numObjNames=countResult.countOf(objNamesMatch);
  List<String> objNames=result.resultOf(objNamesMatch);
  return;
}