@Override
    public void notifyRequiredSegmentId(int subpartitionId, int segmentId) {
        if (segmentId > requiredSegmentId) {
            requiredSegmentId = segmentId;
            stopSendingData = false;
            availabilityListener.notifyDataAvailable(this);
        }
    }
@Test
    void testNotifyRequiredSegmentId() {
        tieredStorageResultSubpartitionView.notifyRequiredSegmentId(0, 1);
        assertThat(availabilityListener).isDone();
    }