public function testThrowsExceptionWhenUnableToUpdatePrivateKey()
{
$this->aclCollection->expects($this->once())->method('update')->with(['publicKey' => 'public'], ['$set' => ['privateKey' => 'private']])->will($this->throwException(new MongoException()));
$this->adapter->updatePrivateKey('public', 'private');
}