Inheritance: implements Symfony\Component\DependencyInjection\ContainerAwareInterface, use trait Symfony\Component\DependencyInjection\ContainerAwareTrait
 public function testRenderWithResponse()
 {
     $response = new Response();
     $view = 'some:valid:view.html.twig';
     $params = array('foo' => 'bar', 'truc' => 'muche');
     $tplResult = "I'm a template result";
     $this->templateEngineMock->expects($this->once())->method('render')->with($view, $params)->will($this->returnValue($tplResult));
     self::assertSame($response, $this->controller->render($view, $params, $response));
     self::assertSame($tplResult, $response->getContent());
 }