/**
  * @expectedException \Sonatra\Bundle\MailerBundle\Exception\InvalidArgumentException
  * @expectedExceptionMessage The "test" layout is not a twig layout
  */
 public function testGetTranslatedLayoutWithInvalidLayout()
 {
     $layout = $this->getMockBuilder(LayoutInterface::class)->getMock();
     $layout->expects($this->once())->method('getTranslation')->will($this->returnValue(clone $layout));
     $this->templater->expects($this->once())->method('getLocale')->will($this->returnValue('fr'));
     $this->layoutLoader->expects($this->once())->method('load')->with('test')->will($this->returnValue($layout));
     $this->ext->getTranslatedLayout('test');
 }