ClientLocalHistory extends AbstractClientHistory implements AutoCloseable { @Override ClientTransaction doCreateTransaction() { updateState(ensureIdleState(), State.TX_OPEN); return new ClientTransaction(this, new TransactionIdentifier(getIdentifier(), nextTx())); } ClientLocalHistory(final AbstractDataStoreClientBehavior client, final LocalHistoryIdentifier historyId); @Override void close();  }
@Override @Test public void testDoCreateTransaction() { final ClientTransaction clientTransaction = object().doCreateTransaction(); Assert.assertEquals(object().getIdentifier(), clientTransaction.getIdentifier().getHistoryId()); }