private List<MockReplicaId> generateLocalAndPeerReplicas() {
    Port port = new Port(6667, PortType.PLAINTEXT);
    // Use temp folder to create the mount point. /mnt/u001 may not exist or accessible.
    peerReplicaMountPath = Arrays.asList(tempDir.getAbsolutePath() + "/u001", tempDir.getAbsolutePath() + "/u002",
        tempDir.getAbsolutePath() + "/u003");

    // generate two peer replicas
    MockDataNodeId peerNode1 =
        new MockDataNodeId("node1_host", Collections.singletonList(port), peerReplicaMountPath, null);
    MockDataNodeId peerNode2 =
        new MockDataNodeId("node2_host", Collections.singletonList(port), peerReplicaMountPath, null);
    MockDataNodeId localNode =
        new MockDataNodeId("local_host", Collections.singletonList(port), peerReplicaMountPath, null);
    MockPartitionId mockPartitionId = new MockPartitionId(101L, MockClusterMap.DEFAULT_PARTITION_CLASS);

    // create mount point for the local replica. MockReplicaId constructor will create replica folder under it.
    for (String path : peerReplicaMountPath) {
      File mountFile = new File(path);
      mountFile.mkdir();
      mountFile.deleteOnExit();
    }
    MockReplicaId peerReplica1 = new MockReplicaId(port.getPort(), mockPartitionId, peerNode1, 0);
    MockReplicaId peerReplica2 = new MockReplicaId(port.getPort(), mockPartitionId, peerNode2, 1);
    MockReplicaId localReplica = new MockReplicaId(port.getPort(), mockPartitionId, localNode, 2);
    localReplica.setPeerReplicas(Arrays.asList(peerReplica1, peerReplica2));
    return Arrays.asList(localReplica, peerReplica1, peerReplica2);
  }
Generate local replica and two peer replicas.
@return a list of replicas (first one is local replica, others are remote peer replicas)
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java