connection.setAutoCommit(false);
Connection connection = getConnectionViaDriverManager(); try { connection.setAutoCommit(false);
    public void testNoLockUp() throws Exception {        Connection connection =            getConnectionViaDriverManager();        connection.setAutoCommit(false);        tryDrop(connection, DROP_META_ONE);        connection.commit();        final Statement stmnt =            connection.createStatement();        try {            stmnt.executeUpdate(CREATE_META_ONE);            connection.commit();        }        finally {            stmnt.close();            connection.close();        }        final Results results = createResults();        final Thread thread = new Thread(new Runnable() {            public void run() {                try {                    performSimilarButNoLockupSequence();                    results.setIsOk();                }                catch (SQLException e) {                    e.printStackTrace(); //To change body of catch statement use Options | File Templates.                }            }        }        , "Lockup test thread.");        thread.start();        assertTrue("Operation should have completed by now",                   results.waitForCompletionOrTimeout());    }