OSimpleKeyIndexDefinition extends ODocumentWrapperNoClass implements OIndexDefinition { public Object getDocumentValueToIndex(final ODocument iDocument) { throw new OIndexException("This method is not supported in given index definition."); } OSimpleKeyIndexDefinition(final OType... keyTypes);  OSimpleKeyIndexDefinition(); List<String> getFields(); List<String> getFieldsToIndex(); String getClassName(); Comparable<?> createValue(final List<?> params); Comparable<?> createValue(final Object... params); int getParamCount(); OType[] getTypes(); @Override ODocument toStream(); Object getDocumentValueToIndex(final ODocument iDocument); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); String toCreateIndexDDL(final String indexName, final String indexType);  }
@Test(expectedExceptions = OIndexException.class) public void testGetDocumentValueToIndex() { simpleKeyIndexDefinition.getDocumentValueToIndex(new ODocument()); }