### Question:
ForwardingReadableBuffer implements ReadableBuffer { @Override public int readInt() { return buf.readInt(); } ForwardingReadableBuffer(ReadableBuffer buf); @Override int readableBytes(); @Override int readUnsignedByte(); @Override int readInt(); @Override void skipBytes(int length); @Override void readBytes(byte[] dest, int destOffset, int length); @Override void readBytes(ByteBuffer dest); @Override void readBytes(OutputStream dest, int length); @Override ReadableBuffer readBytes(int length); @Override boolean hasArray(); @Override byte[] array(); @Override int arrayOffset(); @Override void close(); @Override String toString();  }### Answer:
@Test public void readInt() { when(delegate.readInt()).thenReturn(1); assertEquals(1, buffer.readInt()); }