public function testCreateIndexWithSameNameAndDifferentOptions()
{
$this->setExpectedException('MongoResultException');
$this->getCollection()->createIndex(['foo' => 1], ['name' => 'foo']);
$this->getCollection()->createIndex(['bar' => 1], ['name' => 'foo']);
}