### Question:
FelixOsgiContainerManager implements OsgiContainerManager { public Bundle installBundle(final File file) throws OsgiContainerException { try { return registration.install(file, disableMultipleBundleVersions); } catch (final BundleException e) { throw new OsgiContainerException("Unable to install bundle", e); } } @Deprecated  FelixOsgiContainerManager(final File frameworkBundlesDir, final PackageScannerConfiguration packageScannerConfig, final HostComponentProvider provider, final PluginEventManager eventManager); @Deprecated  FelixOsgiContainerManager(final URL frameworkBundlesZip, final File frameworkBundlesDir, final PackageScannerConfiguration packageScannerConfig, final HostComponentProvider provider, final PluginEventManager eventManager);  FelixOsgiContainerManager(final OsgiPersistentCache persistentCache, final PackageScannerConfiguration packageScannerConfig, final HostComponentProvider provider, final PluginEventManager eventManager);  FelixOsgiContainerManager(final URL frameworkBundlesZip, OsgiPersistentCache persistentCache,
                                     final PackageScannerConfiguration packageScannerConfig,
                                     final HostComponentProvider provider, final PluginEventManager eventManager); void setFelixLogger(final Logger logger); void setDisableMultipleBundleVersions(final boolean val); @SuppressWarnings({"UnusedDeclaration"}) @PluginEventListener void onStart(final PluginFrameworkStartingEvent event); @SuppressWarnings({"UnusedDeclaration"}) @PluginEventListener void onShutdown(final PluginFrameworkShutdownEvent event); @SuppressWarnings({"UnusedDeclaration"}) @PluginEventListener void onPluginUpgrade(PluginUpgradedEvent event); @SuppressWarnings({"UnusedDeclaration"}) @PluginEventListener void onPluginUninstallation(PluginUninstalledEvent event); @SuppressWarnings({"UnusedDeclaration"}) @PluginEventListener void onPluginFrameworkWarmRestarting(PluginFrameworkWarmRestartingEvent event); void start(); void stop(); Bundle[] getBundles(); ServiceReference[] getRegisteredServices(); ServiceTracker getServiceTracker(final String cls); Bundle installBundle(final File file); boolean isRunning(); List<HostComponentRegistration> getHostComponentRegistrations(); static final String OSGI_FRAMEWORK_BUNDLES_ZIP; static final int REFRESH_TIMEOUT; }### Answer:
@Test public void testInstallBundle() throws URISyntaxException { felix.start(); assertEquals(1, felix.getBundles().length); File jar = new File(getClass().getResource("/myapp-1.0.jar").toURI()); felix.installBundle(jar); assertEquals(2, felix.getBundles().length); }