final OClass oClass = schema.getClass("classIndexManagerTestClass");
final OIndex<?> propZeroIndex = oSuperClass.getClassIndex("classIndexManagerTestSuperClass.prop0");
final OIndex<?> propOneIndex = oClass.getClassIndex("classIndexManagerTestClass.prop1");
final OIndex<?> compositeIndex = oClass.getClassIndex("classIndexManagerComposite");
final OIndexDefinition compositeIndexDefinition = compositeIndex.getDefinition();
Assert.assertEquals(propOneIndex.getSize(), 1);
Assert.assertEquals(compositeIndex.getSize(), 1);
Assert.assertEquals(propZeroIndex.getSize(), 1);
doc.field("prop2", 2);
doc.field("prop0", "y");
doc.save();
Assert.assertEquals(propOneIndex.getSize(), 1);
Assert.assertEquals(compositeIndex.getSize(), 1);
Assert.assertEquals(propZeroIndex.getSize(), 1);
Assert.assertNotNull(propZeroIndex.get("y"));
Assert.assertNotNull(propOneIndex.get("a"));
Assert.assertNotNull(compositeIndex.get(compositeIndexDefinition.createValue("a", 2)));
}