### Question:
OsgiManager implements Initializable { private OsgiManager(PropertiesManager propManager) { this.propertiesManager = propManager; } private  OsgiManager(PropertiesManager propManager); static OsgiManager getInstance(); static OsgiManager getInstance(PropertiesManager propertiesManager); Felix getFelix(); void setPropertyManager(PropertiesManager propertiesManager); @Override void initialize(); @Override void shutdown(); @Override boolean isStarted();  }### Answer:
@Test public void testOsgiManager() { System.out.println("OsgiManager/Felix"); PropertiesManager mockPropertiesManager = Mockito.mock(PropertiesManager.class); Mockito.when(mockPropertiesManager.getModuleVersion()).thenReturn("3.0"); OsgiManager instance = OsgiManager.getInstance(mockPropertiesManager); instance.initialize(); Assert.assertNotNull(instance.getFelix()); Service service = ServiceProxyFactory.getServiceProxy(); Assert.assertNotNull(service); Assert.assertEquals(Bundle.ACTIVE, instance.getFelix().getState()); instance.shutdown(); Assert.assertNotEquals(Bundle.ACTIVE, instance.getFelix().getState()); boolean result = instance.isStarted(); Assert.assertFalse(result); }