/**
  * Tests if a task can be successfully dispatched.
  *
  * @see Zend_Controller_Front_Mock
  */
 public function testCanDispatchTask()
 {
     $controller = Zend_Controller_Front::getInstance();
     $controller->setControllerDirectory(dirname(__FILE__) . '/controllers');
     $controller->returnResponse(true);
     $controller->throwExceptions(true);
     $request = new Zend_Controller_Request_Http();
     $request->setControllerName('index');
     $request->setActionName('index');
     $scheduler = new Zend_Scheduler();
     $task = new Zend_Scheduler_Task();
     $task->setFrontController($controller);
     $task->setRequest($request);
     $scheduler->addTask('test', $task);
     $responses = $scheduler->run();
     $this->assertTrue(isset($responses['test']), 'Received empty response');
 }