public function testRenderFile()
 {
     $entityLibrary = $this->dataLibrary->createEmpty();
     $entityLibrary->set('name', 'lib');
     $this->dataLibrary->create($entityLibrary);
     $entityBook = $this->dataBook->createEmpty();
     $entityBook->set('title', 'title');
     $entityBook->set('author', 'author');
     $entityBook->set('pages', 111);
     $entityBook->set('library', $entityLibrary->get('id'));
     $this->dataBook->create($entityBook);
     $fileProcessor = CRUDTestDBSetup::getFileProcessor();
     $fileProcessor->reset();
     $this->dataBook->renderFile($entityBook, 'book', 'cover');
     $this->assertFalse($fileProcessor->isCreateFileCalled());
     $this->assertFalse($fileProcessor->isUpdateFileCalled());
     $this->assertFalse($fileProcessor->isDeleteFileCalled());
     $this->assertTrue($fileProcessor->isRenderFileCalled());
     $fileProcessor->reset();
 }