/**
  * {@inheritdoc}
  */
 public function supports($filename, MediaType $mediaType, Specification $targetFormat)
 {
     return $targetFormat instanceof Image && ($mediaType->getCategory() === 'image' || $mediaType->getName() === 'pdf');
 }
 /**
  * {@inheritdoc}
  */
 public function supports($filename, MediaType $mediaType, Specification $targetFormat)
 {
     return $targetFormat instanceof Video && $mediaType->getCategory() === 'video';
 }
 public function testDefaultMimetypeFallsBackToApplicationOctetStream()
 {
     $mediaType = new MediaType('binary', 'document');
     $this->assertSame('application/octet-stream', $mediaType->getDefaultMimetype());
 }