@Test
public void testCheckpointAndRestart() throws Exception {
LOG.info("------------ testCheckpointAndRestart-----------");
createEdits(20);
AvatarNode primary = cluster.getPrimaryAvatar(0).avatar;
AvatarNode standby = cluster.getStandbyAvatar(0).avatar;
standby.doCheckpoint();
createEdits(20);
standby.quiesceStandby(getCurrentTxId(primary)-1);
assertEquals(40, getCurrentTxId(primary));
assertEquals(getCurrentTxId(primary), getCurrentTxId(standby));
cluster.restartAvatarNodes();
primary = cluster.getPrimaryAvatar(0).avatar;
standby = cluster.getStandbyAvatar(0).avatar;
createEdits(20);
standby.quiesceStandby(getCurrentTxId(primary)-1);
assertEquals(60, getCurrentTxId(primary));
assertEquals(getCurrentTxId(primary), getCurrentTxId(standby));
LOG.info("------------ testCheckpointAndRestart----------- DONE");
}