/**
  * @covers \eZ\Publish\Core\IO\IOService::deleteBinaryFile
  * @expectedException \eZ\Publish\Core\Base\Exceptions\NotFoundException
  * @return mixed Whatever deleteBinaryFile returned
  */
 public function testDeleteBinaryFileNotFound()
 {
     $binaryFile = new BinaryFile(array('id' => __METHOD__));
     $prefixedId = $this->getPrefixedUri($binaryFile->id);
     $this->metadataHandlerMock->expects($this->once())->method('delete')->with($this->equalTo($prefixedId))->will($this->throwException(new BinaryFileNotFoundException($prefixedId)));
     $this->getIOService()->deleteBinaryFile($binaryFile);
 }