public function testAssertionMap()
{
$rbac = $this->getMock('Rbac\\Rbac', [], [], '', false);
$roleService = $this->getMock('ZfcRbac\\Service\\RoleService', [], [], '', false);
$assertionPluginManager = $this->getMock('ZfcRbac\\Assertion\\AssertionPluginManager', [], [], '', false);
$authorizationService = new AuthorizationService($rbac, $roleService, $assertionPluginManager);
$authorizationService->setAssertions(['foo' => 'bar', 'bar' => 'foo']);
$this->assertTrue($authorizationService->hasAssertion('foo'));
$this->assertTrue($authorizationService->hasAssertion('bar'));
$authorizationService->setAssertion('bar', null);
$this->assertFalse($authorizationService->hasAssertion('bar'));
}