Program: 172223
Project: 172223
Buggy source:
public void test_VERSION_LABEL(){
  CMISQueryOptions options=new CMISQueryOptions("String_Node_Str",rootNodeRef.getStoreRef());
  options.setDefaultFTSConnective(Connective.OR);
  options.setDefaultFTSFieldConnective(Connective.OR);
  CMISResultSet rs=cmisQueryService.query(options);
  assertEquals(file_count,rs.length());
  for (  @SuppressWarnings("String_Node_Str") CMISResultSetRow row : rs) {
    CMISResultSetColumn column=rs.getResultSetMetaData().getColumn("String_Node_Str");
    assertNotNull(column);
    assertEquals(CMISDataTypeEnum.STRING,column.getCMISDataType());
    assertEquals(CMISCardinalityEnum.SINGLE_VALUED,column.getCMISPropertyDefinition().getCardinality());
    assertTrue(column.getCMISPropertyDefinition().getPropertyAccessor() instanceof DirectProperty);
  }
  rs.close();
  options=new CMISQueryOptions("String_Node_Str",rootNodeRef.getStoreRef());
  options.setDefaultFTSConnective(Connective.OR);
  options.setDefaultFTSFieldConnective(Connective.OR);
  rs=cmisQueryService.query(options);
  assertEquals(1,rs.length());
  for (  CMISResultSetRow row : rs) {
    Serializable sValue=row.getValue("String_Node_Str");
    String value=DefaultTypeConverter.INSTANCE.convert(String.class,sValue);
    assertNotNull(value);
    assertEquals("String_Node_Str",value);
    CMISResultSetColumn column=rs.getResultSetMetaData().getColumn("String_Node_Str");
    assertEquals(CMISDataTypeEnum.STRING,column.getCMISDataType());
    assertEquals(CMISCardinalityEnum.SINGLE_VALUED,column.getCMISPropertyDefinition().getCardinality());
    assertTrue(column.getCMISPropertyDefinition().getPropertyAccessor() instanceof DirectProperty);
  }
  rs.close();
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",10,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",1,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",1,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",10,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",10,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",1,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",9,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",10,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",10,false,"String_Node_Str",new String(),true);
}

Fixed version (ground truth):
public void test_VERSION_LABEL(){
  CMISQueryOptions options=new CMISQueryOptions("String_Node_Str",rootNodeRef.getStoreRef());
  options.setDefaultFTSConnective(Connective.OR);
  options.setDefaultFTSFieldConnective(Connective.OR);
  CMISResultSet rs=cmisQueryService.query(options);
  assertEquals(file_count,rs.length());
  for (  CMISResultSetRow row : rs) {
    CMISResultSetColumn column=rs.getResultSetMetaData().getColumn("String_Node_Str");
    assertNotNull(column);
    assertEquals(CMISDataTypeEnum.STRING,column.getCMISDataType());
    assertEquals(CMISCardinalityEnum.SINGLE_VALUED,column.getCMISPropertyDefinition().getCardinality());
    assertTrue(column.getCMISPropertyDefinition().getPropertyAccessor() instanceof DirectProperty);
  }
  rs.close();
  options=new CMISQueryOptions("String_Node_Str",rootNodeRef.getStoreRef());
  options.setDefaultFTSConnective(Connective.OR);
  options.setDefaultFTSFieldConnective(Connective.OR);
  rs=cmisQueryService.query(options);
  assertEquals(1,rs.length());
  for (  CMISResultSetRow row : rs) {
    Serializable sValue=row.getValue("String_Node_Str");
    String value=DefaultTypeConverter.INSTANCE.convert(String.class,sValue);
    assertNotNull(value);
    assertEquals("String_Node_Str",value);
    CMISResultSetColumn column=rs.getResultSetMetaData().getColumn("String_Node_Str");
    assertEquals(CMISDataTypeEnum.STRING,column.getCMISDataType());
    assertEquals(CMISCardinalityEnum.SINGLE_VALUED,column.getCMISPropertyDefinition().getCardinality());
    assertTrue(column.getCMISPropertyDefinition().getPropertyAccessor() instanceof DirectProperty);
  }
  rs.close();
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",10,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",1,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",1,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",10,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",10,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",1,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",9,false,"String_Node_Str",new String(),false);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",10,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",0,false,"String_Node_Str",new String(),true);
  testQuery("String_Node_Str",10,false,"String_Node_Str",new String(),true);
}