public function testExecutionOfEnabledBlock()
 {
     $actionBlock = new ActionBlock();
     $actionBlock->setEnabled(true);
     $actionBlock->setActionName('CmfBlockBundle:Test:test');
     $content = "Rendered Action Block.";
     $request = $this->getMock('Symfony\\Component\\HttpFoundation\\Request');
     $this->kernel->expects($this->once())->method('render')->will($this->returnValue($content));
     $actionBlockService = new ActionBlockService('test-service', $this->templating, $this->kernel);
     $actionBlockService->setRequest($request);
     $response = $actionBlockService->execute(new BlockContext($actionBlock));
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $response);
     $this->assertEquals($content, $response->getContent());
 }