### Question:
DownloadUriOutputStream implements DownloadOutputStream { @Override public void close() throws IOException { out.close(); fos.close(); pdf.close(); } 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 close() throws Exception { outputStream.close(); verify(out).close(); verify(fos).close(); }