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