### Question:
FixedRetryPolicy implements BackoffPolicy { public FixedRetryPolicy(int numRetries) { this.numRetries = numRetries; } FixedRetryPolicy(int numRetries); @Override void backoff(); @Override boolean isFailed(); @Override boolean isRetryOk(); @Override void reset(); @Override void waitUntilRetryOk(); @Override long sleepIncrement(); @Override String getName(); @Override ReportEvent getReport(); final static public String A_MAX_ATTEMPTS; final static public String A_COUNT; }### Answer:
@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()); }