### Question:
FixedTaskExecutionBackOff implements TaskExecutionBackOff { public void setMaxRetries(int maxRetries) { checkMaxRetries(maxRetries); this.maxRetries = maxRetries; } FixedTaskExecutionBackOff();  FixedTaskExecutionBackOff(long interval, int maxRetries); long getInterval(); void setInterval(long interval); int getMaxRetries(); void setMaxRetries(int maxRetries); @Override long nextBackOff(Object object, RqueueMessage rqueueMessage, int failureCount); @Override boolean equals(Object other); static final long DEFAULT_INTERVAL; }### Answer:
@Test public void setMaxRetries() { FixedTaskExecutionBackOff backOff = new FixedTaskExecutionBackOff(); backOff.setMaxRetries(3); assertEquals(5000L, backOff.nextBackOff(null, null, 1)); assertEquals(3, backOff.getMaxRetries()); assertEquals(-1, backOff.nextBackOff(null, null, 3)); }