/**
  * @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationException
  */
 public function testSetInvalidResponse()
 {
     $this->responseObject->setResponse('not_json');
     $this->responseObject->getResponse();
 }
 public function testGetSetResponseWithPhpArray()
 {
     $response = array('foo' => 'bar');
     $this->responseObject->setResponse($response);
     $this->assertEquals($response, $this->responseObject->getResponse());
 }
 /**
  * @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationException
  */
 public function testSetInvalidResponse()
 {
     $this->responseObject->setResponse('not_json');
     // should throw exception
     $this->responseObject->getResponse();
 }