/**
  * @covers phpDocumentor\Transformer\Template\Factory::get
  * @covers phpDocumentor\Transformer\Template\Factory::fetchTemplateXmlFromPath
  * @covers phpDocumentor\Transformer\Template\Factory::createTemplateFromXml
  */
 public function testRetrieveInstantiatedTemplate()
 {
     // Arrange
     $templateName = 'clean';
     $template = new Template($templateName);
     vfsStream::setup('exampleDir')->addChild(vfsStream::newFile('template.xml')->setContent('xml'));
     $this->pathResolverMock->shouldReceive('resolve')->with($templateName)->andReturn(vfsStream::url('exampleDir'));
     $this->serializerMock->shouldReceive('deserialize')->with('xml', 'phpDocumentor\\Transformer\\Template', 'xml')->andReturn($template);
     // Act
     $result = $this->fixture->get($templateName);
     // Assert
     $this->assertSame($template, $result);
 }