template.convertAndSend("retry.test.exchange", "retry.test.binding", "Hello, world!");
template.convertAndSend("retry.test.exchange", "retry.test.binding", "Hello, world!");
assertTrue(latch.await(10, TimeUnit.SECONDS));
Thread.sleep(2000);
assertEquals(0, ((Map) new DirectFieldAccessor(cache).getPropertyValue("map")).size());
container.stop();
ctx.close();
}
@SuppressWarnings("rawtypes")
@Test