@Test public void rethrow_wraps_checked_exceptions_before_rethrowing_them() { Exception e = new IOException("foo"); thrown.expect(RuntimeException.class); thrown.expectCause(equalTo(e)); Boilerplate.rethrow(e); }
public static RuntimeException rethrow(Throwable t) { return Throwables.propagate(t); }
Boilerplate { public static RuntimeException rethrow(Throwable t) { return Throwables.propagate(t); } }
Boilerplate { public static RuntimeException rethrow(Throwable t) { return Throwables.propagate(t); }  }
Boilerplate { public static RuntimeException rethrow(Throwable t) { return Throwables.propagate(t); }  static RuntimeException rethrow(Throwable t); static String toString(Class<?> clazz, Object... fields); }
Boilerplate { public static RuntimeException rethrow(Throwable t) { return Throwables.propagate(t); }  static RuntimeException rethrow(Throwable t); static String toString(Class<?> clazz, Object... fields);  }