@Test(expected = TimeoutException.class)
public void testExecuteWithRetryTimeout2() throws InterruptedException, IOException, TimeoutException {

  Callables.executeWithRetry(new TimeoutCallable<Integer, IOException>(1000) {
    private int count = 0;
    @Override
    public Integer call(final long deadline) throws IOException {
      LOG.debug("Exec {}", this);
      count++;
      if (count < 200) {
        throw new SocketException("Aaaaaaaaaaa" + count);
      }
      return 1;
    }
  }, 0, 100, IOException.class);
  Assert.fail();
}