MissingMessageIdAdvice missingIdAdvice = new MissingMessageIdAdvice(cache);
Advice retryInterceptor = fb.getObject();
// add both advices
container.setAdviceChain(new Advice[] {missingIdAdvice, retryInterceptor});
container.start();
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);