public void testRetryRouteSpecificDelay() throws Exception {
final MockEndpoint mockEndpoint = getMockEndpoint("mock:result");
mockEndpoint.expectedMessageCount(1);
mockEndpoint.allMessages().header(Exchange.REDELIVERED).isEqualTo(true);
mockEndpoint.allMessages().header(Exchange.REDELIVERY_COUNTER).isEqualTo(1);
mockEndpoint.allMessages().header(Exchange.REDELIVERY_MAX_COUNTER).isEqualTo(2);
mockEndpoint.allMessages().property("SporadicDelay").isGreaterThanOrEqualTo(500);
template.sendBody("direct:routeSpecificDelay", "Foo");
log.info("delay = {}", mockEndpoint.getReceivedExchanges().get(0).getProperty("SporadicDelay", long.class));