ClientBackedTransactionChain implements DOMStoreTransactionChain { @Override public DOMStoreReadTransaction newReadOnlyTransaction() { return new ClientBackedReadTransaction(createSnapshot(), this, allocationContext()); } ClientBackedTransactionChain(final ClientLocalHistory history, final boolean debugAllocation); @Override DOMStoreReadTransaction newReadOnlyTransaction(); @Override DOMStoreReadWriteTransaction newReadWriteTransaction(); @Override DOMStoreWriteTransaction newWriteOnlyTransaction(); @Override synchronized void close();  }
@Test public void testNewReadOnlyTransaction() { Assert.assertNotNull(chain.newReadOnlyTransaction()); Mockito.verify(history).takeSnapshot(); }