Bundle topMgrBundle = c.createMock(Bundle.class);
RemoteServiceAdmin rsa = c.createMock(RemoteServiceAdmin.class);
final ServiceReference rsaSref = c.createMock(ServiceReference.class);
EndpointListener epl = c.createMock(EndpointListener.class);
final ServiceReference eplSref = c.createMock(ServiceReference.class);
EasyMock.expect(eplSref.getProperty(EasyMock.same(EndpointListener.ENDPOINT_LISTENER_SCOPE)))
.andReturn(scope).anyTimes();
EasyMock.expect(eplSref.getBundle()).andReturn(topMgrBundle).anyTimes();
final ServiceReference sref = c.createMock(ServiceReference.class);