public void testSimpleAnnotedClasses()
{
try
{
ObjectContentManager ocm = getObjectContentManager();
SimpleAnnotedClass a = new SimpleAnnotedClass();
a.setPath("/test");
a.setTest("test");
ocm.insert(a);
ocm.save();
// --------------------------------------------------------------------------------
// Get the object
// --------------------------------------------------------------------------------
a = null;
a = (SimpleAnnotedClass) ocm.getObject( "/test");
assertNotNull("A is null", a);
assertEquals("Invalid value for test", "test", a.getTest());
// --------------------------------------------------------------------------------
// Update
// --------------------------------------------------------------------------------
a.setTest("another test");
ocm.update(a);
ocm.save();
// --------------------------------------------------------------------------------
// Get the object
// --------------------------------------------------------------------------------
a = null;
a = (SimpleAnnotedClass) ocm.getObject( "/test");
assertNotNull("A is null", a);
assertEquals("Invalid value for test", "another test", a.getTest());
// --------------------------------------------------------------------------------
// Search on the interface
// --------------------------------------------------------------------------------
QueryManager queryManager = ocm.getQueryManager();