txn = txnBegin();
/* Check default values before calling get(). */
SequenceStats stats = seq.getStats(null);
assertEquals(0, stats.getCurrent());
assertEquals(0, stats.getCacheSize());
assertEquals(0, stats.getNGets());
assertEquals(Long.MIN_VALUE, stats.getMin());
assertEquals(Long.MAX_VALUE, stats.getMax());
/* Get the first value. */
long val = seq.get(txn, 1);
assertEquals(0, val);
stats = seq.getStats(null);
assertEquals(1, stats.getCurrent());
assertEquals(1, stats.getValue());
assertEquals(0, stats.getLastValue());
assertEquals(1, stats.getNGets());
/* Use deltas greater than one. */
assertEquals(1, seq.get(txn, 2));
assertEquals(3, seq.get(txn, 3));