prefs.putBoolean("bootFeaturesInstalled", false);
prefs.flush();
replay(preferencesService, prefs, repositoriesNode, featuresNode, bundleContext, installedBundle);
svc.installFeature("f1", FeatureImpl.DEFAULT_VERSION, EnumSet.of(FeaturesService.Option.NoAutoRefreshBundles));
Feature[] installed = svc.listInstalledFeatures();
assertEquals(1, installed.length);
assertEquals("f1", installed[0].getName());
}