System.out.println("message sent on: " + destination + " of type: " + destination.getClass());
TestingConsumer consumer = (TestingConsumer) applicationContext.getBean("echoBean");
consumer.waitForMessagesToArrive(number);
long stop = System.currentTimeMillis();
System.err.println("Time to send/receive " + number + " messages: " + (stop - start) + " ms");
List list = consumer.flushMessages();
assertEquals("Message count: " + list, number, list.size());