### Question:
DownloadUriOutputStream implements DownloadOutputStream { @Override public void write(byte[] b, int off, int len) throws IOException { out.write(b, off, len); } DownloadUriOutputStream(Context context, Uri uri, int bufferSize);   DownloadUriOutputStream(@NonNull FileChannel channel, @NonNull ParcelFileDescriptor pdf,
                            @NonNull FileOutputStream fos,
                            @NonNull BufferedOutputStream out); @Override void write(byte[] b, int off, int len); @Override void close(); @Override void flushAndSync(); @Override void seek(long offset); @Override void setLength(long newLength);  }### Answer:
@Test public void write() throws Exception { byte[] bytes = new byte[2]; outputStream.write(bytes, 0, 1); verify(out).write(eq(bytes), eq(0), eq(1)); }