EntityManager em = emf.createEntityManager();
EntityMetadata m = KunderaMetadataManager.getEntityMetadata(((EntityManagerFactoryImpl)emf).getKunderaMetadataInstance(), PersonEventDispatch.class);
Assert.assertNotNull(m.toString());
PersonEventDispatch person = new PersonEventDispatch();
person.setFirstName("vivek");
person.setLastName("mishra");
person.setPersonId("1_p");
em.persist(person);
em.clear();
PersonEventDispatch result = em.find(PersonEventDispatch.class, "1_p");
Assert.assertEquals(result.getLastName(), "Post Load");
onFindCallBack(em);
em.refresh(result);
Assert.assertEquals(result.getLastName(), "Post Load");
em.close();
emf.close();
}