Program: 26823
Project: 26823
Buggy source:
public void testSelectStatement(){
  Where<TestModel1> where=new Select(name).from(TestModel1.class).where(name.is("String_Node_Str"));
  assertEquals("String_Node_Str",where.getQuery().trim());
  where.query();
  Where<TestModel3> where1=new Select(name,type).from(TestModel3.class).where(name.is("String_Node_Str"),type.is("String_Node_Str"));
  assertEquals("String_Node_Str",where1.getQuery().trim());
  Where<TestModel3> where2=new Select().distinct().from(TestModel3.class).where();
  assertEquals("String_Node_Str",where2.getQuery().trim());
  where2.query();
  Where<TestModel3> where3=new Select(Method.count()).from(TestModel3.class).where();
  assertEquals("String_Node_Str",where3.getQuery().trim());
  where3.query();
  Where<TestModel3> where4=new Select().from(TestModel3.class).where(name.eq("String_Node_Str")).and(type.is("String_Node_Str"));
  assertEquals("String_Node_Str",where4.getQuery().trim());
  Where<TestModel3> where6=new Select(Method.count(type)).from(TestModel3.class).orderBy(name,true).orderBy(type,true);
  assertEquals("String_Node_Str",where6.getQuery().trim());
  String query=SQLite.select().from(TestModel3.class).where(TestModel3_Table.type.in(SQLite.select(TestModel2_Table.name).from(TestModel2.class).where(TestModel2_Table.name.is("String_Node_Str")))).getQuery();
  assertEquals("String_Node_Str" + "String_Node_Str",query.trim());
  String operationalQuery=SQLite.select(new OperationalMethod(Method.sum(TestModel3_Table.name)).minus(Method.sum(TestModel3_Table.type)).as("String_Node_Str"),TestModel3_Table.type).from(TestModel3.class).getQuery();
  assertEquals("String_Node_Str",operationalQuery.trim());
}

Fixed version (ground truth):
public void testSelectStatement(){
  Where<TestModel1> where=new Select(name).from(TestModel1.class).where(name.is("String_Node_Str"));
  assertEquals("String_Node_Str",where.getQuery().trim());
  where.query();
  Where<TestModel3> where1=new Select(name,type).from(TestModel3.class).where(name.is("String_Node_Str"),type.is("String_Node_Str"));
  assertEquals("String_Node_Str",where1.getQuery().trim());
  Where<TestModel3> where2=new Select().distinct().from(TestModel3.class).where();
  assertEquals("String_Node_Str",where2.getQuery().trim());
  where2.query();
  Where<TestModel3> where3=new Select(Method.count()).from(TestModel3.class).where();
  assertEquals("String_Node_Str",where3.getQuery().trim());
  where3.query();
  Where<TestModel3> where4=new Select().from(TestModel3.class).where(name.eq("String_Node_Str")).and(type.is("String_Node_Str"));
  assertEquals("String_Node_Str",where4.getQuery().trim());
  Where<TestModel3> where6=new Select(Method.count(type)).from(TestModel3.class).orderBy(name,true).orderBy(type,true);
  assertEquals("String_Node_Str",where6.getQuery().trim());
  String query=SQLite.select().from(TestModel3.class).where(TestModel3_Table.type.in(SQLite.select(TestModel2_Table.name).from(TestModel2.class).where(TestModel2_Table.name.is("String_Node_Str")))).getQuery();
  assertEquals("String_Node_Str" + "String_Node_Str",query.trim());
  String operationalQuery=SQLite.select(new Method(Method.sum(TestModel3_Table.name)).minus(Method.sum(TestModel3_Table.type)).as("String_Node_Str"),TestModel3_Table.type).from(TestModel3.class).getQuery();
  assertEquals("String_Node_Str",operationalQuery.trim());
  String methodQuery=SQLite.select(Method.max(TestModel3_Table.type).as("String_Node_Str")).from(TestModel3.class).getQuery();
  assertEquals("String_Node_Str",methodQuery.trim());
}