@Test
public void testTranslateExceptionIfPossible_unknownJdbcSQLExceptionError() {
JdbcSQLException jdbcEx = new JdbcSQLException("message", "sql statement", "state", ErrorCode.CANNOT_DROP_CURRENT_USER, null, "stacktrace");
RuntimeException re = new RuntimeException("dummy runtime exception", jdbcEx);
TranslatedH2Exception translatedException = (TranslatedH2Exception) dialect.translateExceptionIfPossible(re);
assertThat(translatedException.getErrorCode(), is(ErrorCode.CANNOT_DROP_CURRENT_USER));
}