assertBufferResultEquals(TYPES, getBufferResult(sharedBuffer, FIRST, 0, sizeOfPages(1), NO_WAIT), bufferResult(0, createPage(0)));
sharedBuffer.abort(FIRST);
assertQueueClosed(sharedBuffer, FIRST, 0);
assertBufferResultEquals(TYPES, getBufferResult(sharedBuffer, FIRST, 1, sizeOfPages(1), NO_WAIT), emptyResults(1, true));
outputBuffers = outputBuffers.withBuffer(SECOND, new UnpartitionedPagePartitionFunction()).withNoMoreBufferIds();
sharedBuffer.setOutputBuffers(outputBuffers);
assertBufferResultEquals(TYPES, getBufferResult(sharedBuffer, SECOND, 0, sizeOfPages(1), NO_WAIT), bufferResult(0, createPage(0)));
sharedBuffer.abort(SECOND);
assertQueueClosed(sharedBuffer, SECOND, 0);
assertFinished(sharedBuffer);