@Test
public void testFixedRetryPolicy() {

  FixedRetryPolicy policy = new FixedRetryPolicy(3);
  Assert.assertTrue(policy.isRetryOk());
  policy.backoff();
  policy.backoff();
  policy.backoff();
  Assert.assertFalse(policy.isRetryOk());
  Assert.assertTrue(policy.isFailed());
  
  policy.reset();
  Assert.assertTrue(policy.isRetryOk());
}