saveObject(targetObject, createObjectURI(targetObject.eClass(), id), null);
// Test : Update the object and store it back to MongoDB
targetObject.setSingleAttribute("updated");
targetObject.eResource().save(null);
// Verify : Check that the object was stored correctly, and that is has the ID we specified.
TargetObject actual = EChecker.checkObject(targetObject, createResourceSet());
assertThat(EChecker.getID(actual), is(id));