### Question:
Transaction extends NativeObject implements Closeable { public void abort() { if (self != 0) { mdbx_txn_abort(self); self = 0; } } Transaction(Env env, long self); long getId(); void renew(); void commit(); void reset(); void abort(); @Override void close();  }### Answer:
@Test public void testAbort() { try (Transaction tx = env.createWriteTransaction()) { db.put(tx, data, data); } assertNull(db.get(data)); db.put(data, data); try (Transaction tx = env.createWriteTransaction()) { db.delete(tx, data); } assertArrayEquals(data, db.get(data)); }