public function testDispatch()
 {
     $this->dispatcher->listen(EventDispatcherInterface::EVENT_REQUEST_SUCCESS, [$this, 'handler']);
     $this->assertFalse($this->hasBeenCalled);
     $this->dispatcher->dispatch(EventDispatcherInterface::EVENT_REQUEST_SUCCESS, new Event());
     $this->assertTrue($this->hasBeenCalled);
 }