*
* @throws BundleException
*/
@BeforeClass
public static void initOsgiFramework() throws BundleException {
final FrameworkFactory factory = new EquinoxFactory();
final Map<String, String> configMap = new HashMap<String, String>(2);
// Cleans framework before first init. Subsequent init invocations do not clean framework.
configMap.put("org.osgi.framework.storage.clean", "onFirstInit");
// Delegates loading of endorsed libraries to JVM classloader
// config.put("org.osgi.framework.bootdelegation", "javax.*,org.w3c.*,org.xml.*");
OsgiFramework = factory.newFramework(configMap);
OsgiFramework.init();
OsgiFramework.start();
}