}
public void testUpdateWithQualifier() {
ERXEnterpriseObjectCache<Company> cache = new ERXEnterpriseObjectCache<Company>(Company.ENTITY_NAME, Company.NAME_KEY, Company.NAME.contains("Test"), 0);
cache.setFetchInitialValues(false);
Company c1Test = cache.objectForKey(editingContext, c1.name());
assertNull(c1Test);
Company c2Test = cache.objectForKey(editingContext, c2.name());
assertSame(c2, c2Test);
String name1Update = "Another Test Company " + UUID.randomUUID().toString();
c1.setName(name1Update);
editingContext.saveChanges();
Company c1UpdateTest = cache.objectForKey(editingContext, name1Update);
assertSame(c1, c1UpdateTest);
String name2Update = "Company 2 " + UUID.randomUUID().toString();
c2.setName(name2Update);
editingContext.saveChanges();
Company c2UpdateTest = cache.objectForKey(editingContext, name2Update);
assertNull(c2UpdateTest);
cache.stop();
}