// update
Map<String, Object> properties = new HashMap<String, Object>();
properties.put(PropertyIds.NAME, NAME2);
ObjectId newId = workDoc.updateProperties(properties, false);
Document doc2 = (Document) session.getObject(newId, SELECT_ALL_NO_CACHE_OC);
addResult(checkObject(session, doc2, getAllProperties(doc2), "Updated document compliance"));
f = createResult(FAILURE, "Document name doesn't match updated value!");