// Test : Store the object with the option to use the ID attribute as the MongoDB _id
HashMap<String, Object> options = new HashMap<String, Object>();
options.put(Options.OPTION_USE_ID_ATTRIBUTE_AS_PRIMARY_KEY, Boolean.TRUE);
saveObject(primaryObject, createCollectionURI(primaryObject.eClass()), options);
// Verify : Check that the object was stored correctly
ResourceSet resourceSet = createResourceSet();
Resource resource = resourceSet.getResource(createQueryURI(org.eclipselabs.mongoemf.junit.model.ModelPackage.Literals.PRIMARY_OBJECT, "idAttribute=='" + id + "'"), true);