test_find1 = dao_r.findComment(commentID1);
assertEquals("Title1",test_find1.getTitle());
}
public void testEJBEntityMerged(){
CommentImpl test_find1 = dao_r.findComment(commentID1);
//modify the bean
long l1 = 12;
test_find1.setTitle("Title1");
test_find1.setExperimentID(l1);
dao_r.updateComment(test_find1);
//Test1: updating existing entity
assertEquals("Title1",test_find1.getTitle());
//Test2: checking if merging entity works
test_find1 = dao_r.findComment(commentID1);
test_find1.setTitle("TitleUpdated");
dao_r.updateComment(test_find1);
test_find1 = dao_r.findComment(commentID1);
assertEquals(l1,test_find1.getExperimentID());
assertEquals("TitleUpdated",test_find1.getTitle());
}