OCompositeIndexDefinition extends ODocumentWrapperNoClass implements OIndexDefinition { public List<String> getFields() { final List<String> fields = new LinkedList<String>(); for (final OIndexDefinition indexDefinition : indexDefinitions) { fields.addAll(indexDefinition.getFields()); } return Collections.unmodifiableList(fields); } OCompositeIndexDefinition();  OCompositeIndexDefinition(final String iClassName);  OCompositeIndexDefinition(final String iClassName, final List<? extends OIndexDefinition> iIndexes); String getClassName(); void addIndex(final OIndexDefinition indexDefinition); List<String> getFields(); List<String> getFieldsToIndex(); Object getDocumentValueToIndex(final ODocument iDocument); int getMultiValueDefinitionIndex(); String getMultiValueField(); Object createValue(final List<?> params); OIndexDefinitionMultiValue getMultiValueDefinition(); OCompositeKey createSingleValue(final List<?> params); Object createValue(final Object... params); void processChangeEvent(OMultiValueChangeEvent<?, ?> changeEvent, Map<OCompositeKey, Integer> keysToAdd,
      Map<OCompositeKey, Integer> keysToRemove, Object... params); int getParamCount(); OType[] getTypes(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override ODocument toStream(); String toCreateIndexDDL(final String indexName, final String indexType);  }
@Test public void testGetFields() { final List<String> fields = compositeIndex.getFields(); Assert.assertEquals(fields.size(), 2); Assert.assertEquals(fields.get(0), "fOne"); Assert.assertEquals(fields.get(1), "fTwo"); }