assertInitialState();
retryTemplate.setRetryPolicy(new SimpleRetryPolicy(1, Collections
.<Class<? extends Throwable>, Boolean> singletonMap(Exception.class, true)));
repeatTemplate.setCompletionPolicy(new SimpleCompletionPolicy(2));
// In a real container this could be an outer retry loop with an
// *internal* retry policy.
for (int i = 0; i < 4; i++) {
try {