public function testEventSetResponse()
 {
     $event = new FormActionEvent($this->getMock('\\Symfony\\Component\\Form\\FormInterface'), new stdClass(), 'fooButton');
     self::assertFalse($event->hasResponse());
     self::assertNull($event->getResponse());
     $response = new Response();
     $event->setResponse($response);
     self::assertTrue($event->hasResponse());
     self::assertSame($response, $event->getResponse());
 }