### Question:
PipelinedSubpartition extends ResultSubpartition { @Override public int releaseMemory() { return 0; } PipelinedSubpartition(int index, ResultPartition parent); @Override boolean add(BufferConsumer bufferConsumer); @Override void finish(); @Override void release(); @Override int releaseMemory(); @Override boolean isReleased(); @Override PipelinedSubpartitionView createReadView(BufferAvailabilityListener availabilityListener); boolean isAvailable(); @Override String toString(); @Override int unsynchronizedGetNumberOfQueuedBuffers(); @Override void flush(); @SuppressWarnings("FieldAccessNotGuarded") @VisibleForTesting int getBuffersInBacklog();  }### Answer:
@Test public void testReleaseParentAfterSpilled() throws Exception { final ResultSubpartition partition = createSubpartition(); partition.releaseMemory(); verifyViewReleasedAfterParentRelease(partition); }