Program: 176120
Project: 176120
Buggy source:
@Test public void test(){
  EntityManager em=emf.createEntityManager();
  EmbeddedEntity embeddedEntity=new EmbeddedEntity();
  embeddedEntity.setEmailId("String_Node_Str");
  embeddedEntity.setPhoneNo(9512345346l);
  List<EmbeddedCollectionEntity> embeddedEntities=new ArrayList<EmbeddedCollectionEntity>();
  EmbeddedCollectionEntity collectionEntity1=new EmbeddedCollectionEntity();
  collectionEntity1.setCollectionId("String_Node_Str");
  collectionEntity1.setCollectionName("String_Node_Str");
  embeddedEntities.add(collectionEntity1);
  EmbeddedCollectionEntity collectionEntity2=new EmbeddedCollectionEntity();
  collectionEntity2.setCollectionId("String_Node_Str");
  collectionEntity2.setCollectionName("String_Node_Str");
  embeddedEntities.add(collectionEntity2);
  HbaseSecondaryTableEntity entity=new HbaseSecondaryTableEntity();
  entity.setAge(24);
  entity.setObjectId("String_Node_Str");
  entity.setName("String_Node_Str");
  entity.setEmbeddedEntity(embeddedEntity);
  entity.setCountry("String_Node_Str");
  entity.setEmbeddedEntities(embeddedEntities);
  PersonSecondaryTableAddress address=new PersonSecondaryTableAddress(12.23);
  address.setAddress("String_Node_Str");
  entity.setAddress(address);
  em.persist(entity);
  em.clear();
  HbaseSecondaryTableEntity foundEntity=em.find(HbaseSecondaryTableEntity.class,"String_Node_Str");
  Assert.assertNotNull(foundEntity);
  Assert.assertEquals("String_Node_Str",foundEntity.getName());
  Assert.assertEquals(24,foundEntity.getAge());
  Assert.assertEquals("String_Node_Str",foundEntity.getCountry());
  Assert.assertNotNull(foundEntity.getEmbeddedEntity());
  Assert.assertEquals("String_Node_Str",foundEntity.getEmbeddedEntity().getEmailId());
  Assert.assertEquals(9512345346l,foundEntity.getEmbeddedEntity().getPhoneNo());
  Assert.assertNotNull(foundEntity.getAddress());
  Assert.assertEquals("String_Node_Str",foundEntity.getAddress().getAddress());
  Assert.assertEquals(2,foundEntity.getEmbeddedEntities().size());
  Assert.assertEquals("String_Node_Str",foundEntity.getEmbeddedEntities().get(0).getCollectionName());
  Assert.assertEquals("String_Node_Str",foundEntity.getEmbeddedEntities().get(1).getCollectionName());
  foundEntity.setAge(25);
  foundEntity.setName("String_Node_Str");
  foundEntity.getEmbeddedEntity().setEmailId("String_Node_Str");
  em.merge(foundEntity);
  em.clear();
  foundEntity=em.find(HbaseSecondaryTableEntity.class,"String_Node_Str");
  Assert.assertNotNull(foundEntity);
  Assert.assertEquals("String_Node_Str",foundEntity.getName());
  Assert.assertEquals(25,foundEntity.getAge());
  Assert.assertNotNull(foundEntity.getEmbeddedEntity());
  Assert.assertEquals("String_Node_Str",foundEntity.getEmbeddedEntity().getEmailId());
  Assert.assertEquals(9512345346l,foundEntity.getEmbeddedEntity().getPhoneNo());
  em.remove(foundEntity);
  foundEntity=em.find(HbaseSecondaryTableEntity.class,"String_Node_Str");
  Assert.assertNull(foundEntity);
}

Fixed version (ground truth):
@Test public void test(){
  EntityManager em=emf.createEntityManager();
  cli.addColumnFamily("String_Node_Str","String_Node_Str");
  cli.addColumnFamily("String_Node_Str","String_Node_Str");
  EmbeddedEntity embeddedEntity=new EmbeddedEntity();
  embeddedEntity.setEmailId("String_Node_Str");
  embeddedEntity.setPhoneNo(9512345346l);
  List<EmbeddedCollectionEntity> embeddedEntities=new ArrayList<EmbeddedCollectionEntity>();
  EmbeddedCollectionEntity collectionEntity1=new EmbeddedCollectionEntity();
  collectionEntity1.setCollectionId("String_Node_Str");
  collectionEntity1.setCollectionName("String_Node_Str");
  embeddedEntities.add(collectionEntity1);
  EmbeddedCollectionEntity collectionEntity2=new EmbeddedCollectionEntity();
  collectionEntity2.setCollectionId("String_Node_Str");
  collectionEntity2.setCollectionName("String_Node_Str");
  embeddedEntities.add(collectionEntity2);
  HbaseSecondaryTableEntity entity=new HbaseSecondaryTableEntity();
  entity.setAge(24);
  entity.setObjectId("String_Node_Str");
  entity.setName("String_Node_Str");
  entity.setEmbeddedEntity(embeddedEntity);
  entity.setCountry("String_Node_Str");
  entity.setEmbeddedEntities(embeddedEntities);
  PersonSecondaryTableAddress address=new PersonSecondaryTableAddress(12.23);
  address.setAddress("String_Node_Str");
  entity.setAddress(address);
  em.persist(entity);
  em.clear();
  HbaseSecondaryTableEntity foundEntity=em.find(HbaseSecondaryTableEntity.class,"String_Node_Str");
  Assert.assertNotNull(foundEntity);
  Assert.assertEquals("String_Node_Str",foundEntity.getName());
  Assert.assertEquals(24,foundEntity.getAge());
  Assert.assertEquals("String_Node_Str",foundEntity.getCountry());
  Assert.assertNotNull(foundEntity.getEmbeddedEntity());
  Assert.assertEquals("String_Node_Str",foundEntity.getEmbeddedEntity().getEmailId());
  Assert.assertEquals(9512345346l,foundEntity.getEmbeddedEntity().getPhoneNo());
  Assert.assertNotNull(foundEntity.getAddress());
  Assert.assertEquals("String_Node_Str",foundEntity.getAddress().getAddress());
  Assert.assertEquals(2,foundEntity.getEmbeddedEntities().size());
  Assert.assertEquals("String_Node_Str",foundEntity.getEmbeddedEntities().get(0).getCollectionName());
  Assert.assertEquals("String_Node_Str",foundEntity.getEmbeddedEntities().get(1).getCollectionName());
  foundEntity.setAge(25);
  foundEntity.setName("String_Node_Str");
  foundEntity.getEmbeddedEntity().setEmailId("String_Node_Str");
  em.merge(foundEntity);
  em.clear();
  foundEntity=em.find(HbaseSecondaryTableEntity.class,"String_Node_Str");
  Assert.assertNotNull(foundEntity);
  Assert.assertEquals("String_Node_Str",foundEntity.getName());
  Assert.assertEquals(25,foundEntity.getAge());
  Assert.assertNotNull(foundEntity.getEmbeddedEntity());
  Assert.assertEquals("String_Node_Str",foundEntity.getEmbeddedEntity().getEmailId());
  Assert.assertEquals(9512345346l,foundEntity.getEmbeddedEntity().getPhoneNo());
  em.remove(foundEntity);
  foundEntity=em.find(HbaseSecondaryTableEntity.class,"String_Node_Str");
  Assert.assertNull(foundEntity);
}