setValue("#{countryHome.instance.name}", "foo");
invokeMethod("#{countryHome.persist}");
Country country = (Country) getValue("#{countryHome.instance}");
Session session = (Session) getValue("#{countryHome.entityManager.delegate}");
HibernateEntityIdentifier hibernateEntityIdentifier = new HibernateEntityIdentifier(country, session);
assert "foo".equals(((Country) hibernateEntityIdentifier.find(session)).getName());
HibernateEntityIdentifier hibernateEntityIdentifier2 = new HibernateEntityIdentifier(country, session);
assert hibernateEntityIdentifier.equals(hibernateEntityIdentifier2);
}
}.run();
}