@Test public void cannotRetryOnSubtypeOfInterruptedException() {

  @SuppressWarnings("serial")
  class MyInterruptedException extends InterruptedException {}
  assertThrows(
      IllegalArgumentException.class, () -> upon(MyInterruptedException.class, asList()));
  assertThrows(
      IllegalArgumentException.class,
      () -> retryer.upon(MyInterruptedException.class, e -> false, asList()));
}