EasyMock.expect(proxyReg.getReference()).andReturn((ServiceReference)
mockServiceReference(props)).anyTimes();
proxyReg.unregister();
EasyMock.expectLastCall().once();
EasyMock.replay(proxyReg);
ServiceRegistrationHolder srh = new GuardProxyCatalog.ServiceRegistrationHolder();
srh.registration = proxyReg;
ServiceRegistration<?> proxy2Reg = EasyMock.createMock(ServiceRegistration.class);
EasyMock.replay(proxy2Reg);
ServiceRegistrationHolder srh2 = new GuardProxyCatalog.ServiceRegistrationHolder();
srh2.registration = proxy2Reg;
gpc.proxyMap.put(originalServiceID, srh);
gpc.proxyMap.put(anotherServiceID, srh2);
assertEquals("Precondition", 2, gpc.proxyMap.size());