ClientBackedTransactionChain implements DOMStoreTransactionChain { synchronized void snapshotClosed(final ClientSnapshot clientTransaction) { openSnapshots.remove(clientTransaction); } ClientBackedTransactionChain(final ClientLocalHistory history, final boolean debugAllocation); @Override DOMStoreReadTransaction newReadOnlyTransaction(); @Override DOMStoreReadWriteTransaction newReadWriteTransaction(); @Override DOMStoreWriteTransaction newWriteOnlyTransaction(); @Override synchronized void close();  }
@Test public void testSnapshotClosed() { chain.snapshotClosed(snapshot); chain.close(); Mockito.verify(snapshot, Mockito.never()).abort(); Mockito.verify(history).close(); }