//Create a request bean with imagedepot bean as value
ObjectFactory factory = new ObjectFactory();
Invoke request = factory.createInvoke();
request.setInput(imageDepot);
SendImageResponse response = (SendImageResponse) dispatch.invoke(request);
assertNotNull(response);
assertNotNull(response.getOutput().getImageData());
checkText(response.getOutput());
// Repeat to verify behavior
response = (SendImageResponse) dispatch.invoke(request);
assertNotNull(response);
assertNotNull(response.getOutput().getImageData());
checkText(response.getOutput());
}