@Test
public void testAlwaysRetry() {

  ContainerRetryContext retryContext =  ContainerRetryContext.newInstance(
      ContainerRetryPolicy.RETRY_ON_ALL_ERRORS, null, -1,
      0, 10);
  SlidingWindowRetryPolicy.RetryContext windowContext = new
      SlidingWindowRetryPolicy.RetryContext(retryContext);
  Assert.assertTrue("always retry", retryPolicy.shouldRetry(windowContext,
      12));
  Assert.assertEquals("remaining retries",
      ContainerRetryContext.RETRY_FOREVER,
      windowContext.getRemainingRetries());
}