AbstractClientHistory extends LocalAbortable implements Identifiable<LocalHistoryIdentifier> { public ClientSnapshot takeSnapshot() { checkNotClosed(); synchronized (this) { final ClientSnapshot ret = doCreateSnapshot(); openTransactions.put(ret.getIdentifier(), ret); return ret; } } AbstractClientHistory(final AbstractDataStoreClientBehavior client, final LocalHistoryIdentifier identifier); @Override LocalHistoryIdentifier getIdentifier(); ClientTransaction createTransaction(); ClientSnapshot takeSnapshot();  }
@Test public void testTakeSnapshot() { final ClientSnapshot clientSnapshot = object().takeSnapshot(); Assert.assertEquals(object().getIdentifier(), clientSnapshot.getIdentifier().getHistoryId()); }