assertEquals("Descendant path is invalid", descendant.getPath(), "/test");
assertEquals("Descendant ancestorField is invalid", descendant.getAncestorField(), "anotherAncestorValue");
assertEquals("Descendant descendantField is invalid", descendant .getDescendantField(), "descendantValue");
assertEquals("Descendant intField is invalid", descendant.getIntField(), 123);
Ancestor ancestor = (Ancestor) ocm.getObject("/test");
assertTrue("Invalid object instance", ancestor instanceof Descendant );
assertEquals("Ancestor path is invalid", ancestor.getPath(), "/test");
assertEquals("Ancestor ancestorField is invalid", ancestor.getAncestorField(), "anotherAncestorValue");
} catch (Exception e) {
e.printStackTrace();
fail();