@Test
public void testNeverRetry() {

  ContainerRetryContext retryContext =
      ContainerRetryContext.NEVER_RETRY_CONTEXT;
  SlidingWindowRetryPolicy.RetryContext windowContext = new
      SlidingWindowRetryPolicy.RetryContext(retryContext);
  Assert.assertFalse("never retry", retryPolicy.shouldRetry(windowContext,
      12));
  Assert.assertEquals("remaining retries", 0,
      windowContext.getRemainingRetries());
}