setValue("#{countryHome.instance.name}", "foo");
invokeMethod("#{countryHome.persist}");
Country country = (Country) getValue("#{countryHome.instance}");
EntityManager entityManager = (EntityManager) getValue("#{countryHome.entityManager}");
EntityIdentifier entityIdentifier = new EntityIdentifier(country, entityManager);
assert "foo".equals(((Country) entityIdentifier.find(entityManager)).getName());
EntityIdentifier entityIdentifier2 = new EntityIdentifier(country, entityManager);
assert entityIdentifier.equals(entityIdentifier2);
}
}.run();
}