@Test(expected = IllegalStateException.class)
public void testBadRuntimeException() {

    ExceptionTransformer<BadRuntimeException> exceptionTransformer =
        new ExceptionTransformer<>(
            BadRuntimeException.class,
            SQLException.class);
    SQLException s = new SQLException("My custom SQL Exception");
    Throwable actual = exceptionTransformer.transformException(s);
    assertThat(actual).hasCause(new SQLException());
}