void handleSegmentWithDeleteSegmentFinishedState(RemoteLogSegmentId remoteLogSegmentId) {
        // It completely removes the tracking of this segment as it is considered as deleted.
        unreferencedSegmentIds.remove(remoteLogSegmentId);
    }
@Test
    void handleSegmentWithDeleteSegmentFinishedState() {
        RemoteLogSegmentId segmentId = new RemoteLogSegmentId(tpId, Uuid.randomUuid());
        epochState.handleSegmentWithCopySegmentStartedState(segmentId);
        assertEquals(1, epochState.unreferencedSegmentIds().size());

        epochState.handleSegmentWithDeleteSegmentFinishedState(segmentId);
        assertTrue(epochState.unreferencedSegmentIds().isEmpty());
    }