void handleSegmentWithCopySegmentStartedState(RemoteLogSegmentId remoteLogSegmentId) {
        // Add this to unreferenced set of segments for the respective leader epoch.
        unreferencedSegmentIds.add(remoteLogSegmentId);
    }
@Test
    void handleSegmentWithCopySegmentStartedState() {
        RemoteLogSegmentId segmentId = new RemoteLogSegmentId(tpId, Uuid.randomUuid());
        epochState.handleSegmentWithCopySegmentStartedState(segmentId);
        assertEquals(1, epochState.unreferencedSegmentIds().size());
        assertTrue(epochState.unreferencedSegmentIds().contains(segmentId));
    }