public function testDeleteIndexUsingField()
{
$newCollection = $this->getCheckDatabase()->selectCollection('test');
$newCollection->createIndex(['bar' => 1]);
$expected = ['nIndexesWas' => 2, 'ok' => 1.0];
$this->assertSame($expected, $this->getCollection()->deleteIndex('bar'));
$this->assertCount(1, iterator_to_array($newCollection->listIndexes()));
}