Map<String, Object> frameworkProperties = new HashMap<String, Object>();
frameworkProperties.put(Constants.FRAMEWORK_STORAGE, storage.getAbsolutePath());
frameworkProperties.put(Constants.FRAMEWORK_SYSTEMPACKAGES_EXTRA,
"org.kohsuke.metainf_services");
RemoteFramework framework = forkedFactory.fork(Collections.<String> emptyList(),
Collections.<String, String> emptyMap(), frameworkProperties, null,
bootClasspath);
framework.start();
File testBundle = generateBundle();
long bundleId = framework.installBundle("file:" + testBundle.getAbsolutePath());
framework.startBundle(bundleId);
// START>>> not yet implemented
// framework.waitForState(bundleId, Bundle.ACTIVE, 1500);
Thread.sleep(3000);
// <<<END not yet implemented
framework.stop();
forkedFactory.join();
}