@Override
    public boolean isReleased() {
        return isReleased;
    }
@TestTemplate
    void testIsReleasedChecksParent() {
        PipelinedSubpartition subpartition = mock(PipelinedSubpartition.class);

        PipelinedSubpartitionView reader =
                new PipelinedSubpartitionView(subpartition, mock(BufferAvailabilityListener.class));

        assertThat(reader.isReleased()).isFalse();
        verify(subpartition, times(1)).isReleased();

        when(subpartition.isReleased()).thenReturn(true);
        assertThat(reader.isReleased()).isTrue();
        verify(subpartition, times(2)).isReleased();
    }