assertEquals(result.getName(), "ClassIndexTestCompositeEmbeddedSet");
assertEquals(oClass.getClassIndex("ClassIndexTestCompositeEmbeddedSet").getName(), result.getName());
assertEquals(database.getMetadata().getIndexManager()
.getClassIndex("ClassIndexTestClass", "ClassIndexTestCompositeEmbeddedSet").getName(), result.getName());
final OIndexDefinition indexDefinition = result.getDefinition();
assertTrue(indexDefinition instanceof OCompositeIndexDefinition);
assertEquals(indexDefinition.getFields().toArray(), new String[] { "fTwelve", "fEmbeddedSet" });
assertEquals(indexDefinition.getTypes(), new OType[] { OType.INTEGER, OType.INTEGER });
assertEquals(indexDefinition.getParamCount(), 2);
}