@Test
  public void getReplicasTest() throws Exception {
    List<? extends PartitionId> partitionIds = CLUSTER_MAP.getWritablePartitionIds(null);
    for (PartitionId partitionId : partitionIds) {
      String originalReplicaStr = partitionId.getReplicaIds().toString().replace(", ", ",");
      BlobId blobId = new BlobId(CommonTestUtils.getCurrentBlobIdVersion(), BlobId.BlobIdType.NATIVE,
          ClusterMap.UNKNOWN_DATACENTER_ID, Account.UNKNOWN_ACCOUNT_ID, Container.UNKNOWN_CONTAINER_ID,
          partitionId, false, BlobId.BlobDataType.DATACHUNK);
      MockRestResponseChannel restResponseChannel = new MockRestResponseChannel();
      ReadableStreamChannel channel = getReplicasHandler.getReplicas(blobId.getID(), restResponseChannel);
      assertEquals("Unexpected response status", ResponseStatus.Ok, restResponseChannel.getStatus());
      assertEquals("Unexpected Content-Type", RestUtils.JSON_CONTENT_TYPE,
          restResponseChannel.getHeader(RestUtils.Headers.CONTENT_TYPE));
      String returnedReplicasStr = RestTestUtils.getJsonizedResponseBody(channel)
          .get(GetReplicasHandler.REPLICAS_KEY)
          .toString()
          .replace("\"", "");
      assertEquals("Replica IDs returned for the BlobId do no match with the replicas IDs of partition",
          originalReplicaStr, returnedReplicasStr);
    }
  }
Tests {@link GetReplicasHandler#getReplicas(String, RestResponseChannel)}
<p/>
For the each {@link PartitionId} in the {@link ClusterMap}, a {@link BlobId} is created. The replica list returned
from {@link GetReplicasHandler#getReplicas(String, RestResponseChannel)}is checked for equality against a locally
obtained replica list.
@throws Exception
ambry-frontend/src/test/java/com/github/ambry/frontend/GetReplicasHandlerTest.java