/**
  * @param Storageable $storageable
  * @return string
  */
 public function generate(Storageable $storageable) : string
 {
     try {
         return $this->uuidGenerator->generateUnique();
     } catch (UUIDGeneratorException $e) {
         throw NameGenerationException::notGenerated();
     }
 }
 /**
  * @param \Dvs\UUIDGenerator\Interfaces\UUIDGenerator $uuidGenerator
  * @param \Dvs\FileBundle\Storage\Resource\Storageable           $storageable
  */
 public function it_should_return_generated_name_if_it_possible($uuidGenerator, $storageable)
 {
     //given
     $uuidGenerator->generateUnique()->willReturn($generatedName = 'name');
     //then
     $this->generate($storageable)->shouldReturn($generatedName);
 }