### Question:
SneakyThrows { public static void throwsSneakyIOException() { sneakyThrow(new IOException("sneaky")); }  static void sneakyThrow(Throwable e); static void throwsSneakyIOException(); static void main(String[] args);  }### Answer:
@Test public void whenCallSneakyMethod_thenThrowSneakyException() { try { SneakyThrows.throwsSneakyIOException(); } catch (Exception ex) { assertEquals("sneaky", ex.getMessage().toString()); } }