BundleContext bundleContext = EasyMock.createMock(BundleContext.class);
Bundle installedBundle = EasyMock.createMock(Bundle.class);
FeaturesServiceImpl svc = new FeaturesServiceImpl();
svc.setBundleContext(bundleContext);
svc.setFeaturesServiceRegistry(new ManagedFeaturesRegistry());
svc.addRepository(uri);
try {
svc.uninstallFeature("f1");
fail("Uninstall should have failed as feature is not installed");