@Test
  public void parsingAndConstructIDTest() throws Exception {
    logger.info("Start ParsingAndConstructIDTest");
    servers.get(0).createLocalPeer(group.getGroupId(), group.getPeers());
    for (int i = 0; i < CHECK_POINT_GAP; i++) {
      servers.get(0).write(gid, new TestEntry(i, peers.get(0)));
    }

    String regionDir = servers.get(0).getRegionDirFromConsensusGroupId(gid);
    try {
      File regionDirFile = new File(regionDir);
      Assert.assertTrue(regionDirFile.exists());
    } catch (Exception e) {
      Assert.fail();
    }
  }
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