public void addReplaceFileId(String partitionPath, String fileId) {
    if (!partitionToReplaceFileIds.containsKey(partitionPath)) {
      partitionToReplaceFileIds.put(partitionPath, new ArrayList<>());
    }
    partitionToReplaceFileIds.get(partitionPath).add(fileId);
  }
@Test
  public void verifyFieldNamesInReplaceCommitMetadata() throws IOException {
    List<HoodieWriteStat> fakeHoodieWriteStats = HoodieTestUtils.generateFakeHoodieWriteStat(10);
    HoodieReplaceCommitMetadata commitMetadata = new HoodieReplaceCommitMetadata();
    fakeHoodieWriteStats.forEach(stat -> {
      commitMetadata.addWriteStat(stat.getPartitionPath(), stat);
      commitMetadata.addReplaceFileId(stat.getPartitionPath(), stat.getFileId());
    });
    verifyMetadataFieldNames(commitMetadata, EXPECTED_FIELD_NAMES);
  }