@Test
public void testStoreAndReload() throws Exception { 

  AriesApplication app = createApplication (TEST_EBA);
  File dest = new File ("ariesApplicationManagerImplTest/stored.eba");
  app.store(dest);
  
  /* Dest should be a zip file with four entries:
   *  /foo.bar.widgets.jar
   *  /my.business.logic.jar
   *  /META-INF/APPLICATION.MF
   *  /META-INF/DEPLOYMENT.MF
   */
  
  IDirectory storedEba = FileSystem.getFSRoot(dest);
  assertNotNull (storedEba);
  assertEquals (storedEba.listFiles().size(), 3);
  IFile ifile = storedEba.getFile("META-INF/APPLICATION.MF");
  assertNotNull (ifile);
  ifile = storedEba.getFile ("META-INF/DEPLOYMENT.MF");
  assertNotNull (ifile);
  ifile = storedEba.getFile ("foo.bar.widgets.jar");
  assertNotNull (ifile);
  ifile = storedEba.getFile ("my.business.logic.jar");
  assertNotNull (ifile);
  
  AriesApplication newApp = _appMgr.createApplication(storedEba);
  DeploymentMetadata dm = newApp.getDeploymentMetadata();
  assertEquals (2, dm.getApplicationDeploymentContents().size());
  assertEquals(1, dm.getApplicationProvisionBundles().size());
  assertEquals (dm.getApplicationSymbolicName(), app.getApplicationMetadata().getApplicationSymbolicName());
  assertEquals (dm.getApplicationVersion(), app.getApplicationMetadata().getApplicationVersion());
}