public function testDispatchEvent() {
$this->_eventManager
->addEventListener(array(
'preFoo',
'postFoo',
), $this);
$this->_eventManager
->dispatchEvent(self::preFoo);
$this
->assertTrue($this->_preFooInvoked);
$this
->assertFalse($this->_postFooInvoked);
}