@Override
        public void onCreated(final PeerId peer) {
            LOG.info("Replicator has created");
            NodeTest.this.startedCounter.incrementAndGet();
        }
Test rollback stateMachine with readIndex for issue 317:
https://github.com/sofastack/sofa-jraft/issues/317
jraft-core/src/test/java/com/alipay/sofa/jraft/core/NodeTest.java