public function testThrowsExceptionWhenNotAbleToGetAclGroupCollection()
{
$adapter = new MongoDB(['databaseName' => 'somename'], $this->client);
$this->client->expects($this->once())->method('selectCollection')->with('somename', 'accesscontrolgroup')->will($this->throwException(new MongoException()));
$adapter->groupExists('name');
}