### Question:
ClientBuffer { public void setNoMorePages() { PendingRead pendingRead; synchronized (this) { if (noMorePages) { return; } noMorePages = true; pendingRead = this.pendingRead; this.pendingRead = null; } if (pendingRead != null) { processRead(pendingRead); } } ClientBuffer(String taskInstanceId, OutputBufferId bufferId); BufferInfo getInfo(); boolean isDestroyed(); void destroy(); void enqueuePages(Collection<SerializedPageReference> pages); ListenableFuture<BufferResult> getPages(long sequenceId, DataSize maxSize); ListenableFuture<BufferResult> getPages(long sequenceId, DataSize maxSize, Optional<PagesSupplier> pagesSupplier); void setNoMorePages(); void loadPagesIfNecessary(PagesSupplier pagesSupplier); void acknowledgePages(long sequenceId); @Override String toString();  }### Answer:
@Test public void testAddAfterNoMorePages() { ClientBuffer buffer = new ClientBuffer(TASK_INSTANCE_ID, BUFFER_ID); buffer.setNoMorePages(); addPage(buffer, createPage(0)); addPage(buffer, createPage(0)); assertBufferInfo(buffer, 0, 0); }