source: class PackageRegistryTest {
  
      private InstallerSettings settings;
      private PackageRegistry registry;
  
      @Test
      public void testMetadata()
          throws Exception
      {
  
target:         JavaPackage pkg = registry.getPackageById( null );
          Set<File> files = pkg.getFiles();
          assertEquals( 1, files.size() );
          File metadataFile = files.iterator().next();
          assertEquals( Paths.get( "usr/share/maven-metadata/test-package.xml" ), metadataFile.getTargetPath() );
          assertNotNull( pkg.getMetadata() );
      }
  
  }