public static Path getSegmentFinishDirPath(
            String basePath, TieredStoragePartitionId partitionId, int subpartitionId) {
        String subpartitionPath = getSubpartitionPath(basePath, partitionId, subpartitionId);
        return new Path(subpartitionPath, SEGMENT_FINISH_DIR_NAME);
    }
@Test
    void testGetSegmentFinishDirPath() {
        TieredStoragePartitionId partitionId =
                TieredStorageIdMappingUtils.convertId(new ResultPartitionID());
        int subpartitionId = 0;

        String segmentFinishDirPath =
                SegmentPartitionFile.getSegmentFinishDirPath(
                                tempFolder.getPath(), partitionId, subpartitionId)
                        .getPath();
        File expectedSegmentFinishDir =
                getSegmentFinishDir(tempFolder.getPath(), partitionId, subpartitionId);
        assertThat(segmentFinishDirPath).isEqualTo(expectedSegmentFinishDir.getPath());
    }