services = new LinkedHashMap();
MockControl mc = MockControl.createNiceControl(Configuration.class);
cfg = (Configuration) mc.getMock();
mc.expectAndReturn(cfg.getProperties(), new Properties());
mc.replay();
bundleContext = new MockBundleContext() {
public ServiceRegistration registerService(String[] clazzes, Object service, Dictionary properties) {
services.put(service, properties);
return super.registerService(clazzes, service, properties);
}