Transaction tx = getServer().beginTransaction();
long sequenceStart = readSequenceValue(tx, GenKeySequence.SEQUENCE_NAME);
GenKeySequence al = new GenKeySequence();
al.setDescription("my description");
getServer().save(al);
long sequenceCurrent = readSequenceValue(tx, GenKeySequence.SEQUENCE_NAME);
assertNotNull(al.getId());
assertFalse("sequence advanced", sequenceStart == sequenceCurrent);
assertEquals("sequence advanced by 20", sequenceStart + 20, sequenceCurrent);
}