### Question:
BufferStats { public synchronized void reset() { lastBufferSize = INIT_VALUE; minBufferSize = INIT_VALUE; maxBufferSize = INIT_VALUE; }  synchronized int getLastBufferSize(); synchronized void setLastBufferSize(int value); synchronized int getMinBufferSize(); synchronized int getMaxBufferSize(); synchronized void reset(); @Override synchronized String toString(); static final int INIT_VALUE; }### Answer:
@Test public void testReset() { BufferStats stats = new BufferStats(); stats.setLastBufferSize(10); assertEquals(10, stats.getLastBufferSize()); assertEquals(10, stats.getMinBufferSize()); assertEquals(10, stats.getMaxBufferSize()); stats.reset(); assertEquals(-1, stats.getLastBufferSize()); assertEquals(-1, stats.getMinBufferSize()); assertEquals(-1, stats.getMaxBufferSize()); }