public function expectConfirms(JDownloaderPackage $package)
 {
     $confirmPackage = $this->confirmPackage;
     $this->buildAtMethodGroupExpectation('confirmPackage', 'default')->with($this->equalTo($package->getName()))->will($this->returnCallback(function ($packageName) use($package, $confirmPackage) {
         $confirmPackage($packageName, $package);
     }));
 }