assertEquals(TestBean.class.getName(), ex.getPersistentClassName());
assertEquals("id", ex.getIdentifier());
assertEquals(onfe, ex.getCause());
}
final WrongClassException wcex = new WrongClassException("msg", "id", TestBean.class.getName());
try {
createTemplate().execute(new HibernateCallback() {
public Object doInHibernate(org.hibernate.Session session) throws HibernateException {
throw wcex;
}