// Retrieve AnotherDescendant class
//---------------------------------------------------------------------------------------------------------
queryManager = ocm.getQueryManager();
filter = queryManager.createFilter(AnotherDescendant.class);
filter.addEqualTo("anotherDescendantField", "anotherDescendantValue");
query = queryManager.createQuery(filter);
result = ocm.getObjects(query);
assertEquals("Invalid number of AnotherDescendant found", result.size(),2);
assertTrue("Invalid item in the collection", this.contains(result, "/anotherdescendant1", AnotherDescendant.class));
assertTrue("Invalid item in the collection", this.contains(result, "/anotherdescendant2", AnotherDescendant.class));