EasyMock.expectLastCall().andReturn(Boolean.valueOf(isRequestor)).times(2);
contexts.get(i).get(SERVER_ADDRESSING_PROPERTIES_OUTBOUND);
EasyMock.expectLastCall().andReturn(maps);
sequences.get(i).getIdentifier();
EasyMock.expectLastCall().andReturn(identifiers.get(i));
Transport transport = isRequestor
? control.createMock(ClientTransport.class)
: control.createMock(ServerTransport.class);
if (isRequestor) {
handler.getClientTransport();
EasyMock.expectLastCall().andReturn(transport).times(2);
} else {
handler.getServerTransport();
EasyMock.expectLastCall().andReturn(transport).times(1);
}
AbstractBindingBase binding =
control.createMock(AbstractBindingBase.class);
handler.getBinding();
EasyMock.expectLastCall().andReturn(binding);
HandlerInvoker handlerInvoker =
control.createMock(HandlerInvoker.class);
binding.createHandlerInvoker();
EasyMock.expectLastCall().andReturn(handlerInvoker);
AbstractBindingImpl bindingImpl =
control.createMock(AbstractBindingImpl.class);
binding.getBindingImpl();
EasyMock.expectLastCall().andReturn(bindingImpl).times(isRequestor
? 6
: 5);
bindingImpl.createBindingMessageContext(contexts.get(i));
MessageContext bindingContext =
control.createMock(MessageContext.class);
EasyMock.expectLastCall().andReturn(bindingContext);
OutputStreamMessageContext outputStreamContext =
control.createMock(OutputStreamMessageContext.class);
transport.createOutputStreamContext(bindingContext);
EasyMock.expectLastCall().andReturn(outputStreamContext);
if (isRequestor) {
setUpClientDispatch(handlerInvoker,
contexts.get(i),