TargetObject targetObject = ModelFactory.eINSTANCE.createTargetObject();
targetObject.setSingleAttribute("junit");
// Test : Store the object to MongoDB
saveObject(targetObject, createObjectURI(targetObject.eClass(), id), 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.toString()));