ClientLocalHistory extends AbstractClientHistory implements AutoCloseable { @Override ClientSnapshot doCreateSnapshot() { ensureIdleState(); return new ClientSnapshot(this, new TransactionIdentifier(getIdentifier(), nextTx())); } ClientLocalHistory(final AbstractDataStoreClientBehavior client, final LocalHistoryIdentifier historyId); @Override void close();  }
@Override @Test public void testDoCreateSnapshot() { final ClientSnapshot clientSnapshot = object().doCreateSnapshot(); Assert.assertEquals(new TransactionIdentifier(object().getIdentifier(), object().nextTx()).getHistoryId(), clientSnapshot.getIdentifier().getHistoryId()); }