public class BeanExpressionConcurrentTest extends ContextTestSupport {
public void testBeanConcurrent() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedMessageCount(1000);
mock.expectsNoDuplicates(body());
// start from 1000 to be 4 digit always (easier to string compare)
for (int i = 1000; i < 2000; i++) {
template.sendBody("seda:foo", "" + i);
}