ConstantTimeBackoff extends AdapterBase implements BackoffAlgorithm, ConstantTimeBackoffMBean { @Override public boolean wakeup(String threadName) { Thread th = _asleep.get(threadName); if (th != null) { th.interrupt(); return true; } return false; }  @Override void waitBeforeRetry(); @Override void reset(); @Override boolean configure(String name, Map<String, Object> params); @Override Collection<String> getWaiters(); @Override boolean wakeup(String threadName); @Override long getTimeToWait(); @Override void setTimeToWait(long seconds);  }
@Test public void wakeupNotExisting() { final ConstantTimeBackoff backoff = new ConstantTimeBackoff(); Assert.assertFalse(backoff.wakeup("NOT EXISTING THREAD")); }