expect(endpointConfiguration.getTimeout()).andReturn(5000L).anyTimes();
producer.send(anyObject(Message.class), anyObject(TestContext.class));
expectLastCall().andAnswer(new IAnswer<Object>() {
public Object answer() throws Throwable {
Message sentMessage = (Message)EasyMock.getCurrentArguments()[0];
Assert.assertTrue(sentMessage instanceof SoapFault);
SoapFault soapFault = (SoapFault) sentMessage;
Assert.assertEquals(soapFault.getFaultCode(), "{http://citrusframework.org}ws:TEC-1000");
Assert.assertEquals(soapFault.getFaultString(), "Internal server error");