return uniqueIndex;
}
private OIndexUnique mockUniqueCompositeHashIndexWithNullSupport() {
final OIndexUnique uniqueIndex = mock(OIndexUnique.class);
when(uniqueIndex.getInternal()).thenReturn(uniqueIndex);
final OIndexDefinition definition = mock(OIndexDefinition.class);
when(definition.getParamCount()).thenReturn(2);
when(uniqueIndex.getDefinition()).thenReturn(definition);
when(uniqueIndex.getType()).thenReturn(OClass.INDEX_TYPE.UNIQUE_HASH_INDEX.toString());
when(uniqueIndex.getMetadata()).thenReturn(new ODocument().field("ignoreNullValues", false));
return uniqueIndex;
}