public void testUpdate() {
ERXEC ec = (ERXEC) ERXEC.newEditingContext();
ec.lock();
try {
Country country = Country.fetchCountry(ec, Country.CODE.eq("NLD"));
final String headOfState = "Queen " + country.headOfState();
country.setHeadOfState(headOfState);
ec.saveChanges();
Integer cnt = ERXEOControlUtilities.objectCountWithQualifier(ec, Country.ENTITY_NAME, Country.HEAD_OF_STATE.eq(headOfState));