public static boolean isInterrupted(Throwable t) {
    return t instanceof InterruptedException || t instanceof InterruptedIOException;
  }
@Test
  public void isInterrupted() {
    assertTrue(ExceptionUtils.isInterrupted(new InterruptedException()));
    assertTrue(ExceptionUtils.isInterrupted(new InterruptedIOException()));
    assertFalse(ExceptionUtils.isInterrupted(new IOException()));
  }