private void checkPeerList(IoTConsensusServerImpl iotServerImpl) {
    Assert.assertEquals(
        peers.stream().map(Peer::getNodeId).collect(Collectors.toSet()),
        iotServerImpl.getConfiguration().stream().map(Peer::getNodeId).collect(Collectors.toSet()));
  }
First, suspend one node to test that the request replication between the two alive nodes is ok,
then restart all nodes to lose state in the queue, and test using WAL replication to make all
nodes finally consistent.
iotdb-core/consensus/src/test/java/org/apache/iotdb/consensus/iot/ReplicateTest.java