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 =