public function testOnBootstrap()
{
$applicationEventManager = new EventManager();
$application = $this->getMock(ApplicationInterface::class);
$application->expects($this->any())->method('getEventManager')->will($this->returnValue($applicationEventManager));
$event = new Event();
$event->setTarget($application);
$module = new Module();
$module->onBootstrap($event);
$this->assertListenerAtPriority([$module, 'onDispatch'], -9999999, MvcEvent::EVENT_DISPATCH, $applicationEventManager);
$this->assertListenerAtPriority([$module, 'onDispatch'], -9999999, MvcEvent::EVENT_DISPATCH_ERROR, $applicationEventManager);
}