protected function setUp()
 {
     $this->entityRegistry = new TemplateEntityRegistry();
     $this->templateManager = new TemplateManager($this->entityRegistry);
     $this->templateRepository = $this->getMockForAbstractClass('Oro\\Bundle\\ImportExportBundle\\TemplateFixture\\AbstractTemplateRepository', [], '', true, true, true, ['getEntityClass', 'createEntity']);
     $this->templateRepository->setTemplateManager($this->templateManager);
     $this->templateRepository->expects($this->any())->method('getEntityClass')->will($this->returnValue(self::ENTITY_CLASS));
 }