WrappedResponseInputStream extends InputStream { @Override public synchronized void mark(int readlimit) { delegate.mark(readlimit); } WrappedResponseInputStream(
            @NonNull InputStream delegate, @NonNull Response delegateResponse); @Override int read(); @Override int read(final byte b[]); @Override int read(final byte b[], final int off, final int len); @Override long skip(final long n); @Override synchronized void mark(int readlimit); @Override synchronized void reset(); @Override int available(); @Override boolean markSupported(); @Override void close();  }
@Test public void mark_withDelegateInputStream_shouldMarkFromDelegate() { final WrappedResponseInputStream streamUnderTest = new WrappedResponseInputStream(mockDelegateStream, mockRawResponseDelegate); streamUnderTest.mark(1); verify(mockDelegateStream).mark(eq(1)); }