@Test
public void testDocumentToIndexSuccessful() {

  final ODocument document = new ODocument();
  document.field("fOne", 12);
  document.field("fTwo", "test");
  final Object result = compositeIndex.getDocumentValueToIndex(document);
  Assert.assertEquals(result, new OCompositeKey(Arrays.asList(12, "test")));
}