public function testTriggerCapabilityEvent()
 {
     $em = $this->_capabilities->getAdapter()->getEventManager();
     $event = null;
     $em->attach('capability', function ($eventArg) use(&$event) {
         $event = $eventArg;
     });
     $this->_capabilities->setMaxTtl($this->_marker, 100);
     $this->assertInstanceOf('Zend\\EventManager\\Event', $event);
     $this->assertEquals('capability', $event->getName());
     $this->assertSame($this->_adapter, $event->getTarget());
     $params = $event->getParams();
     $this->assertInstanceOf('ArrayObject', $params);
     $this->assertTrue(isset($params['maxTtl']));
     $this->assertEquals(100, $params['maxTtl']);
 }