AddressingPropertiesImpl maps = control.createMock(AddressingPropertiesImpl.class);
EasyMock.expect(message.get(Message.REQUESTOR_ROLE)).andReturn(null);
EasyMock.expect(message.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND)).andReturn(maps);
EndpointReferenceType replyToEPR = control.createMock(EndpointReferenceType.class);
EasyMock.expect(maps.getReplyTo()).andReturn(replyToEPR).times(2);
AttributedURIType replyToURI = control.createMock(AttributedURIType.class);
EasyMock.expect(replyToEPR.getAddress()).andReturn(replyToURI);
String replyToAddress = "replyTo";
EasyMock.expect(replyToURI.getValue()).andReturn(replyToAddress);
org.apache.cxf.ws.addressing.v200408.EndpointReferenceType acksToEPR =
control.createMock(org.apache.cxf.ws.addressing.v200408.EndpointReferenceType.class);
EasyMock.expect(ds.getAcksTo()).andReturn(acksToEPR);
AttributedURI acksToURI = control.createMock(AttributedURI.class);
EasyMock.expect(acksToEPR.getAddress()).andReturn(acksToURI);