/**
  * @covers \BjyAuthorize\View\UnauthorizedStrategy::onDispatchError
  */
 public function testIgnoresOnExistingResponse()
 {
     $response = $this->getMock('Zend\\Stdlib\\ResponseInterface');
     $viewModel = $this->getMock('Zend\\View\\Model\\ModelInterface');
     $mvcEvent = $this->getMock('Zend\\Mvc\\MvcEvent');
     $mvcEvent->expects($this->any())->method('getResult')->will($this->returnValue($response));
     $mvcEvent->expects($this->any())->method('getViewModel')->will($this->returnValue($viewModel));
     $viewModel->expects($this->never())->method('addChild');
     $mvcEvent->expects($this->never())->method('setResponse');
     $this->assertNull($this->strategy->onDispatchError($mvcEvent));
 }