120121122123124125126127128129130
assertNotNull(c); try { c.begin(); assertEquals(TestManagedConnection.LOCAL_TRANSACTION, c.getLocalState()); c.commit(); assertEquals(TestManagedConnection.LOCAL_COMMITTED, c.getLocalState()); } finally { c.close();