CorbaDestination destination = control.createMock(CorbaDestination.class);
EndpointInfo endpointInfo = control.createMock(EndpointInfo.class);
ServiceInfo sInfo = control.createMock(ServiceInfo.class);
BindingInfo bInfo = control.createMock(BindingInfo.class);
InterfaceInfo info = control.createMock(InterfaceInfo.class);
BindingOperationInfo bopInfo = control.createMock(BindingOperationInfo.class);
OperationInfo opInfo = control.createMock(OperationInfo.class);
EasyMock.expect(destination.getBindingInfo()).andReturn(bInfo);
EasyMock.expect(destination.getEndPointInfo()).andReturn(endpointInfo);
QName qname = new QName("" , "Test", "");
EasyMock.expect(bInfo.getOperation(qname)).andReturn(bopInfo);
EasyMock.expect(bopInfo.getOperationInfo()).andReturn(opInfo);
CorbaMessage message = control.createMock(CorbaMessage.class);
Exchange exchange = control.createMock(Exchange.class);
EndpointReferenceType etype = control.createMock(EndpointReferenceType.class);
MessageInfo mInfo = control.createMock(MessageInfo.class);
EasyMock.expect(message.getExchange()).andReturn(exchange);