@Test
public void testIsReleasedChecksParent() throws Exception {

	PipelinedSubpartition subpartition = mock(PipelinedSubpartition.class);
	PipelinedSubpartitionView reader = new PipelinedSubpartitionView(
			subpartition, mock(BufferAvailabilityListener.class));
	assertFalse(reader.isReleased());
	verify(subpartition, times(1)).isReleased();
	when(subpartition.isReleased()).thenReturn(true);
	assertTrue(reader.isReleased());
	verify(subpartition, times(2)).isReleased();
}