ApplicationMetadataImpl implements ApplicationMetadata { public String getApplicationName() { return this.appName; } ApplicationMetadataImpl(Manifest appManifest); List<Content> getApplicationContents(); List<ServiceDeclaration> getApplicationExportServices(); List<ServiceDeclaration> getApplicationImportServices(); String getApplicationSymbolicName(); Version getApplicationVersion(); String getApplicationName(); String getApplicationScope(); boolean equals(Object other); @Override int hashCode(); void store(File f); void store(OutputStream out); Collection<Content> getUseBundles();  }
@Test public void testBasicMetadataCreation() throws IOException { ApplicationMetadataFactory manager = new ApplicationMetadataFactoryImpl(); ApplicationMetadata app = manager.parseApplicationMetadata(getClass().getResourceAsStream("/META-INF/APPLICATION.MF")); Assert.assertEquals("Travel Reservation", app.getApplicationName()); }