ObjectMessageContextImpl inputCtx)
throws Exception {
// Make following call to return a mocked SOAPClientBinding:
// bus.getBindingManager().getBindingFactory(bindingId).createClientBinding(reference)
SOAPClientBinding clientBinding = EasyMock
.createMock(SOAPClientBinding.class);
clientBinding.createObjectContext();
EasyMock.expectLastCall().andReturn(inputCtx);
clientBinding.invoke(EasyMock.isA(ObjectMessageContextImpl.class),
EasyMock.isA(SCADataBindingCallback.class));
EasyMock.expectLastCall().andReturn(new ObjectMessageContextImpl());
EasyMock.replay(clientBinding);
SOAPBindingFactory bindingFactory = EasyMock.createNiceMock(SOAPBindingFactory.class);