static AmbryReplica createMockAmbryReplica(String storeId, long capacity, String filePath, boolean isSealed) {
    AmbryPartition partitionId = mock(AmbryPartition.class);
    when(partitionId.toString()).thenReturn(storeId);
    when(partitionId.toPathString()).thenReturn(storeId);

    AmbryReplica mockAmbryReplica = Mockito.mock(AmbryReplica.class);
    when(mockAmbryReplica.getPartitionId()).thenReturn(partitionId);
    when(mockAmbryReplica.getReplicaPath()).thenReturn(filePath);
    when(mockAmbryReplica.getCapacityInBytes()).thenReturn(capacity);
    when(mockAmbryReplica.isSealed()).thenReturn(isSealed);
    return mockAmbryReplica;
  }
Create a mock AmbryReplica for blob store testing
@param storeId partitionId from replicaId.getPartitionId() will toString() to this
@param capacity replicaId.getCapacityInBytes() will output this
@param filePath replicaId.getReplicaPath() will output this
@param isSealed whether the replica is sealed or not
@return a mock AmbryReplica
ambry-store/src/test/java/com/github/ambry/store/StoreTestUtils.java