Proxy proxy = control.createMock(Proxy.class, new Method[] {m});
proxy.setReliableEndpoint(rme);
DestinationSequence ds = control.createMock(DestinationSequence.class);
EndpointReferenceType acksToEPR = control.createMock(EndpointReferenceType.class);
EasyMock.expect(ds.getAcksTo()).andReturn(acksToEPR);
AttributedURI acksToURI = control.createMock(AttributedURI.class);
EasyMock.expect(acksToEPR.getAddress()).andReturn(acksToURI);
String acksToAddress = "acksTo";
EasyMock.expect(acksToURI.getValue()).andReturn(acksToAddress);
Endpoint endpoint = control.createMock(Endpoint.class);
EasyMock.expect(rme.getEndpoint()).andReturn(endpoint);
EndpointInfo epi = control.createMock(EndpointInfo.class);
EasyMock.expect(endpoint.getEndpointInfo()).andReturn(epi);
ServiceInfo si = control.createMock(ServiceInfo.class);