public function testBadDir()
 {
     $ownershipFacade = new OwnershipFacade();
     try {
         $ownershipFacade->setPerformer(new LocalFSPerformer('/tmp1111'));
     } catch (\Exception $e) {
         $this->assertTrue($e instanceof \InvalidArgumentException);
     }
 }
 /**
  * @param ResourceCollection[] $sliceList
  *
  * @return ResourceCollection
  */
 protected function execute(array $sliceList)
 {
     $pollPerformer = $this->getPollPerformer();
     $this->ownershipFacade->setPerformer($pollPerformer);
     foreach ($sliceList as $slice) {
         $ownershipManager = $this->ownershipFacade->buildManager($slice);
         if ($ownershipManager->acquire() === false) {
             continue;
         }
         return $slice;
     }
     return new ResourceCollection();
 }