manager.uninstall(ctx);
}
@Test
public void testAppWithApplicationManifest() throws Exception {
AriesApplicationManager manager = getOsgiService(AriesApplicationManager.class);
AriesApplication app = manager.createApplication(FileSystem.getFSRoot(new File("test2.eba")));
// application name should equal to whatever Application name provided in the application.mf
assertEquals("test application 2", app.getApplicationMetadata().getApplicationName());
AriesApplicationContext ctx = manager.install(app);
ctx.start();
HelloWorld hw = getOsgiService(HelloWorld.class);
String result = hw.getMessage();
assertEquals (result, "hello world");
ctx.stop();
manager.uninstall(ctx);
}