ModuleContext ctxA = module.getModuleContext();
ServiceReference<ServiceD> srefD = ctxA.getServiceReference(ServiceD.class);
Assert.assertNotNull("ServiceReference not null", srefD);
ServiceD srvD = ctxA.getService(srefD);
Assert.assertEquals("ServiceD#1:ServiceD1#1:null:Hello", srvD.doStuff("Hello"));
ConfigurationAdmin configAdmin = getConfigurationAdmin(module);
Configuration config = configAdmin.getConfiguration(ServiceD1.class.getName());
Assert.assertNotNull("Config not null", config);
Assert.assertNull("Config is empty, but was: " + config.getProperties(), config.getProperties());