template.convertAndSend(ROUTE, "message");
String result = (String) template.receiveAndConvert(ROUTE);
assertEquals("message", result);
result = (String) template.receiveAndConvert(ROUTE);
assertEquals(null, result);
singleConnectionFactory.destroy();
}
@Test
public void testSendAndReceiveTransactedWithImplicitRollback() throws Exception {
template.setChannelTransacted(true);