public void testSpringInfrastructureProxyOnImportersWithTheSameRef() throws Exception {
Object service = new Object();
ServiceInvoker invokerA = new ServiceStaticInterceptor(createObjectTrackingBundleContext(service), ref);
ServiceInvoker invokerB = new ServiceStaticInterceptor(createObjectTrackingBundleContext(service), ref);
InfrastructureProxy proxyA = new InfrastructureOsgiProxyAdvice(invokerA);
InfrastructureProxy proxyB = new InfrastructureOsgiProxyAdvice(invokerB);
// though this is not normal, we want the interceptors to be different to make sure the wrapped object
// gets properly delegated
assertFalse("invokers should not be equal (they have different bundle contexts)", invokerA.equals(invokerB));
assertFalse("proxies should not be equal", proxyA.equals(proxyB));
assertSame(proxyA.getWrappedObject(), proxyB.getWrappedObject());
}