@Test
public void testMetadata()
    throws Exception
{

    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() );
}