URI uri = createTempRepo(FEATURE_WITH_INVALID_BUNDLE, bundle1Uri, bundle2Uri);
BundleContext bundleContext = EasyMock.createMock(BundleContext.class);
Bundle bundle = EasyMock.createMock(Bundle.class);
FrameworkStartLevel fsl = EasyMock.createMock(FrameworkStartLevel.class);
expect(bundleContext.getBundles()).andReturn(new Bundle[0]);
expect(bundleContext.getBundle()).andReturn(bundle);
expect(bundle.adapt(FrameworkStartLevel.class)).andReturn(fsl);
expect(fsl.getInitialBundleStartLevel()).andReturn(50);
expect(fsl.getStartLevel()).andReturn(100);
replay(bundleContext, bundle, fsl);
FeaturesServiceImpl svc = new FeaturesServiceImpl(null, bundleContext, new Storage(), null, null, null, null, null, null, null, null, null);
svc.addRepository(uri);
try {