// --------------------------------------------------------------------------------
// Create and store an object A in the repository
// --------------------------------------------------------------------------------
A a = new A();
a.setPath("/test");
a.setStringData("testdata");
ocm.insert(a);
String uuidA = a.getUuid();
assertNotNull("uuid is null", uuidA);
ocm.save();
// --------------------------------------------------------------------------------
// Get the object
// --------------------------------------------------------------------------------
a = (A) ocm.getObject( "/test");
assertNotNull("a is null", a);
uuidA = a.getUuid();
assertNotNull("uuid is null", uuidA);
log.info("UUID : " + uuidA);
// --------------------------------------------------------------------------------
// Update the object
// --------------------------------------------------------------------------------
a.setStringData("testdata2");
ocm.update(a);
ocm.save();
// --------------------------------------------------------------------------------
// Get the object
// --------------------------------------------------------------------------------
a = (A) ocm.getObject("/test");
assertNotNull("a is null", a);
assertTrue("The uuid has been modified", uuidA.equals(a.getUuid()));
// --------------------------------------------------------------------------------
// Get the object with the uuid
// --------------------------------------------------------------------------------
a = (A) ocm.getObjectByUuid(uuidA);
assertNotNull("a is null", a);
assertTrue("Invalid object found with the uuid ", "testdata2".equals(a.getStringData()));
// --------------------------------------------------------------------------------
// Get the object with an invalid uuid
// --------------------------------------------------------------------------------
try