@Test
public void createIndexTest() throws ExecutionException, UnsupportedException {

    IndexMetadataBuilder indexMetadataBuilder = new IndexMetadataBuilder(DB_NAME, TABLE_NAME, INDEX_NAME,
                    IndexType.DEFAULT);
    indexMetadataBuilder.addColumn(COLUMN_NAME, new ColumnType(DataType.VARCHAR));
    indexMetadataBuilder.addColumn(COLUMN_NAME2, new ColumnType(DataType.INT));
    IndexMetadata indexMetadata = indexMetadataBuilder.build();
    DBCollection collection = mock(DBCollection.class);
    when(client.getDB(DB_NAME)).thenReturn(database);
    when(database.getCollection(TABLE_NAME)).thenReturn(collection);
    // PowerMockito.mockStatic(IndexUtils.class);
    mongoMetadataEngine.createIndex(indexMetadata, connection);
    // PowerMockito.verifyStatic(Mockito.times(1));
    // IndexUtils.getIndexDBObject(indexMetadata);
    verify(client, times(1)).getDB(DB_NAME);
    verify(collection, times(1)).createIndex(new BasicDBObject(COLUMN_NAME, 1).append(COLUMN_NAME2, 1),
                    new BasicDBObject("name", INDEX_NAME));
}