log.warn("failing testCommit",  ex);
if (log!=null) log.warn("failing testCommit",  ex);
    public void testCommit() throws Exception {        try{            connection.setAutoCommit(false);            Statement statement = connection.createStatement();            try {               statement.execute(DROP_TEST_TABLE);           }           catch (Exception e) {}           statement.executeUpdate(CREATE_TEST_TABLE);            connection.commit();            statement.executeUpdate(INSERT_TEST_TABLE);            connection.commit();            ResultSet rs = null;            try {                rs = statement.executeQuery(SELECT_TEST_TABLE);                assertTrue("ResultSet is empty", rs.next());                int value = rs.getInt(1);                assertTrue("Commit failed: expecting value=1, received value=" + value, value == 1);            } finally {                if (rs != null) rs.close();            }            statement.executeUpdate(DROP_TEST_TABLE);            connection.commit();        } catch(Exception ex) {           log.warn("failing testCommit",  ex);            assertTrue(ex.getMessage(), false);        }    }