public function testIndexAction()
 {
     $content = 'CONTENT';
     $templating = $this->getMockBuilder('Symfony\\Bundle\\FrameworkBundle\\Templating\\EngineInterface')->getMockForAbstractClass();
     $templating->expects($this->once())->method('render')->will($this->returnValue($content));
     $translator = $this->getMockBuilder('Oro\\Bundle\\TranslationBundle\\Translation\\Translator')->disableOriginalConstructor()->getMock();
     $translator->expects($this->once())->method('getTranslations')->will($this->returnValue(array()));
     $controller = new Controller($translator, $templating, 'OroTranslationBundle:Translation:translation.js.twig', array());
     $request = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\Request')->disableOriginalConstructor()->getMock();
     $request->expects($this->once())->method('getMimeType')->with('js')->will($this->returnValue('JS'));
     $response = $controller->indexAction($request, 'en');
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $response);
     $this->assertEquals($content, $response->getContent());
     $this->assertEquals(200, $response->getStatusCode());
     $this->assertEquals('JS', $response->headers->get('Content-Type'));
 }