public function testThrowsExceptionWhenNotAbleToGetCollection()
{
$client = $this->getMockBuilder('MongoClient')->disableOriginalConstructor()->getMock();
$client->expects($this->once())->method('selectCollection')->will($this->throwException(new MongoException()));
$adapter = new MongoDB(['databaseName' => $this->databaseName], $client);
$adapter->storeImageVariationMetadata('key', 'id', 700, 700);
}