OPropertyIndexDefinition extends ODocumentWrapperNoClass implements OIndexDefinition { public OType[] getTypes() { return new OType[] { keyType }; } OPropertyIndexDefinition(final String iClassName, final String iField, final OType iType);  OPropertyIndexDefinition(); String getClassName(); List<String> getFields(); List<String> getFieldsToIndex(); Object getDocumentValueToIndex(final ODocument iDocument); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); Object createValue(final List<?> params); Object createValue(final Object... params); int getParamCount(); OType[] getTypes(); @Override final ODocument toStream(); String toCreateIndexDDL(final String indexName, final String indexType);  }
@Test public void testGetTypes() { final OType[] result = propertyIndex.getTypes(); Assert.assertEquals(result.length, 1); Assert.assertEquals(result[0], OType.INTEGER); }