Program: 176793
Project: 176793
Buggy source:
@Test @PerfTest(invocations=1000) public void testCRUDOnAssociation(){
  String personStr;
  String personStr1;
  String personPk="String_Node_Str";
  String person1Pk="String_Node_Str";
  String addressPk="String_Node_Str";
  Set<HabitatUni1ToM> addresses=new HashSet<HabitatUni1ToM>();
  HabitatUni1ToM add1=new HabitatUni1ToM();
  add1.setAddressId(addressPk);
  add1.setStreet("String_Node_Str");
  HabitatUni1ToM add=new HabitatUni1ToM();
  add.setAddressId(addressPk);
  add.setStreet("String_Node_Str");
  addresses.add(add1);
  addresses.add(add);
  PersonnelUni1ToM p=new PersonnelUni1ToM();
  p.setPersonId(personPk);
  p.setPersonName("String_Node_Str");
  p.setAddresses(addresses);
  PersonnelUni1ToM p1=new PersonnelUni1ToM();
  p1.setPersonId(person1Pk);
  p1.setPersonName("String_Node_Str");
  p1.setAddresses(addresses);
  personStr=JAXBUtils.toString(PersonnelUni1ToM.class,p,mediaType);
  personStr1=JAXBUtils.toString(PersonnelUni1ToM.class,p1,mediaType);
  applicationToken=restClient.getApplicationToken("String_Node_Str");
  Assert.assertNotNull(applicationToken);
  Assert.assertTrue(applicationToken.startsWith("String_Node_Str"));
  sessionToken=restClient.getSessionToken(applicationToken);
  Assert.assertNotNull(sessionToken);
  Assert.assertTrue(sessionToken.startsWith("String_Node_Str"));
  String insertResponse=restClient.insertPerson(sessionToken,personStr);
  String insertResponse1=restClient.insertPerson(sessionToken,personStr1);
  Assert.assertNotNull(insertResponse);
  Assert.assertTrue(insertResponse.indexOf("String_Node_Str") > 0);
  Assert.assertNotNull(insertResponse1);
  Assert.assertTrue(insertResponse1.indexOf("String_Node_Str") > 0);
  String foundPerson=restClient.findPerson(sessionToken,personPk);
  Assert.assertNotNull(foundPerson);
  if (MediaType.APPLICATION_JSON.equals(mediaType)) {
    foundPerson="String_Node_Str" + foundPerson + "String_Node_Str";
  }
  Assert.assertTrue(foundPerson.indexOf(addressPk) > 0);
  Assert.assertTrue(foundPerson.indexOf("String_Node_Str") > 0);
  Assert.assertTrue(foundPerson.indexOf("String_Node_Str") > 0);
  String updatedPerson=restClient.updatePerson(sessionToken,foundPerson);
  Assert.assertNotNull(updatedPerson);
  Assert.assertTrue(updatedPerson.indexOf("String_Node_Str") > 0);
  String allPersons=restClient.getAllPersons(sessionToken);
  Assert.assertNotNull(allPersons);
  Assert.assertTrue(allPersons.indexOf("String_Node_Str") > 0);
  log.debug(allPersons);
  String jpaQuery="String_Node_Str" + person1Pk;
  String queryResult=restClient.runJPAQuery(sessionToken,jpaQuery,new HashMap<String,Object>());
  log.debug("String_Node_Str" + queryResult);
  restClient.deletePerson(sessionToken,updatedPerson,personPk);
  foundPerson=restClient.findPerson(sessionToken,personPk);
  Assert.assertEquals("String_Node_Str",foundPerson);
  restClient.closeSession(sessionToken);
  restClient.closeApplication(applicationToken);
}

Fixed version (ground truth):
@Test @PerfTest(invocations=10) public void testCRUDOnAssociation(){
  String personStr;
  String personStr1;
  String personPk="String_Node_Str";
  String person1Pk="String_Node_Str";
  String addressPk="String_Node_Str";
  Set<HabitatUni1ToM> addresses=new HashSet<HabitatUni1ToM>();
  HabitatUni1ToM add1=new HabitatUni1ToM();
  add1.setAddressId(addressPk);
  add1.setStreet("String_Node_Str");
  HabitatUni1ToM add=new HabitatUni1ToM();
  add.setAddressId(addressPk);
  add.setStreet("String_Node_Str");
  addresses.add(add1);
  addresses.add(add);
  PersonnelUni1ToM p=new PersonnelUni1ToM();
  p.setPersonId(personPk);
  p.setPersonName("String_Node_Str");
  p.setAddresses(addresses);
  PersonnelUni1ToM p1=new PersonnelUni1ToM();
  p1.setPersonId(person1Pk);
  p1.setPersonName("String_Node_Str");
  p1.setAddresses(addresses);
  personStr=JAXBUtils.toString(PersonnelUni1ToM.class,p,mediaType);
  personStr1=JAXBUtils.toString(PersonnelUni1ToM.class,p1,mediaType);
  applicationToken=restClient.getApplicationToken("String_Node_Str");
  Assert.assertNotNull(applicationToken);
  Assert.assertTrue(applicationToken.startsWith("String_Node_Str"));
  sessionToken=restClient.getSessionToken(applicationToken);
  Assert.assertNotNull(sessionToken);
  Assert.assertTrue(sessionToken.startsWith("String_Node_Str"));
  String insertResponse=restClient.insertPerson(sessionToken,personStr);
  String insertResponse1=restClient.insertPerson(sessionToken,personStr1);
  Assert.assertNotNull(insertResponse);
  Assert.assertTrue(insertResponse.indexOf("String_Node_Str") > 0);
  Assert.assertNotNull(insertResponse1);
  Assert.assertTrue(insertResponse1.indexOf("String_Node_Str") > 0);
  String foundPerson=restClient.findPerson(sessionToken,personPk);
  Assert.assertNotNull(foundPerson);
  if (MediaType.APPLICATION_JSON.equals(mediaType)) {
    foundPerson="String_Node_Str" + foundPerson + "String_Node_Str";
  }
  Assert.assertTrue(foundPerson.indexOf(addressPk) > 0);
  Assert.assertTrue(foundPerson.indexOf("String_Node_Str") > 0);
  Assert.assertTrue(foundPerson.indexOf("String_Node_Str") > 0);
  String updatedPerson=restClient.updatePerson(sessionToken,foundPerson);
  Assert.assertNotNull(updatedPerson);
  Assert.assertTrue(updatedPerson.indexOf("String_Node_Str") > 0);
  String allPersons=restClient.getAllPersons(sessionToken);
  Assert.assertNotNull(allPersons);
  Assert.assertTrue(allPersons.indexOf("String_Node_Str") > 0);
  log.debug(allPersons);
  String jpaQuery="String_Node_Str" + person1Pk;
  String queryResult=restClient.runJPAQuery(sessionToken,jpaQuery,new HashMap<String,Object>());
  log.debug("String_Node_Str" + queryResult);
  restClient.deletePerson(sessionToken,updatedPerson,personPk);
  foundPerson=restClient.findPerson(sessionToken,personPk);
  Assert.assertEquals("String_Node_Str",foundPerson);
  restClient.closeSession(sessionToken);
  restClient.closeApplication(applicationToken);
  if (AUTO_MANAGE_SCHEMA) {
    truncateColumnFamily();
  }
}