public function testPackageWithMissingFilesWillSetEpisodeStatusWhileDownloadingToMISSING_FILES()
 {
     $list = array($episode = $this->getDownloadingEpisode());
     $this->expectClientReturnsEpisodes($list);
     $package = new JDownloaderPackage($episode->getPackageName());
     $package->setFiles(array($this->notFoundFile1));
     $this->assertTrue($this->notFoundFile1->isNotFound());
     $this->assertTrue($package->hasMissingFiles());
     $this->jd->hasPackage($package);
     $this->jd->expectHasPackageCalls($this->atLeastOnce());
     $this->runOrganizer();
     $this->assertEquals(Status::MISSING_FILES, $episode->getStatus());
 }