CircularBuffer { public int getBufferSize(){ return size; } CircularBuffer(final int size); void write(final byte data); void readAll(final OutputStream outputStream); void readChunk(final OutputStream outputStream, final int chunkSize); boolean isFull(); boolean isEmpty(); int getAvailableDataLength(); int getBufferSize(); void reset();  }
@Test public void testGetBufferSize() throws Exception { final CircularBuffer buffer = new CircularBuffer(10); assertEquals(10, buffer.getBufferSize()); }