@Test
public void toRuntimeException2() {

    IllegalArgumentException iae = new IllegalArgumentException();
    IOException ioe = new IOException();
    assertSame(iae, ExceptionUtil.toRuntimeException(iae, IllegalStateException.class));
    assertTrue(ExceptionUtil.toRuntimeException(ioe, IllegalStateException.class) instanceof IllegalStateException);
    assertSame(ioe, ExceptionUtil.toRuntimeException(ioe, IllegalStateException.class).getCause());
}