/**
  * Test that package version conversion works from dist references.
  *
  * @return void
  */
 public function testConvertPackageVersionReturnsDistReference()
 {
     $package = new RootPackage('test/package', 'dev-master', 'dev-master');
     $package->setDistType('zip');
     $package->setDistReference('4f934d928260e126b5d06392e12ee20fae258232');
     $package->setDistUrl('https://example.com/4f934d928260e126b5d06392e12ee20fae258232.zip');
     $package->setSourceType('zip');
     $package->setSourceReference('4f934d928260e126b5d06392e12ee20fae258232');
     $package->setSourceUrl('https://example.com/4f934d928260e126b5d06392e12ee20fae258232.zip');
     $converter = PackageConverter::create($package);
     $this->assertEquals('dev-master#4f934d928260e126b5d06392e12ee20fae258232', $converter->convertPackageVersion($package, true));
     $this->assertEquals('dev-master#4f934d92', $converter->convertPackageVersion($package));
 }