@Test
public void testCatchSqlException() {

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