### Question:
OSimpleKeyIndexDefinition extends ODocumentWrapperNoClass implements OIndexDefinition { public OType[] getTypes() { return keyTypes; } 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);  }### Answer:
@Test public void testGetKeyTypes() { Assert.assertEquals(simpleKeyIndexDefinition.getTypes(), new OType[] { OType.INTEGER, OType.STRING }); }
@Test public void testGetKeyTypesOneType() { final OSimpleKeyIndexDefinition keyIndexDefinition = new OSimpleKeyIndexDefinition(OType.BOOLEAN); Assert.assertEquals(keyIndexDefinition.getTypes(), new OType[] { OType.BOOLEAN }); }