EasyMock.expect(b1.getState()).andReturn(Bundle.ACTIVE).anyTimes();
EasyMock.expect(b1.findEntries("OSGI-INF/remote-service", "*.xml", false)).
andReturn(rsBEnum).anyTimes();
BundleContext bc = control.createMock(BundleContext.class);
ServiceReference sr = control.createMock(ServiceReference.class);
TestDiscoveredServiceTracker dst = new TestDiscoveredServiceTracker();
EasyMock.expect(bc.getBundles()).andReturn(new Bundle[] {b0, b1}).anyTimes();
EasyMock.expect(sr.getProperty(DiscoveredServiceTracker.INTERFACE_MATCH_CRITERIA)).
andReturn(Collections.singleton("org.example.SomeService")).anyTimes();