assertEquals("MESSAGE", received.get(1000, TimeUnit.MILLISECONDS));
assertEquals("MESSAGE", result);
// Message was consumed so nothing left on queue
result = (String) template.receiveAndConvert();
assertEquals(null, result);
cachingConnectionFactory.destroy();
}
@Test
public void testAtomicSendAndReceiveWithConversionAndMessagePostProcessorUsingRoutingKey() throws Exception {
ExecutorService executor = Executors.newFixedThreadPool(1);