### Question:
OutputStreamDelegate extends OutputStream { @Override public void close() throws IOException { delegate.close(); } OutputStreamDelegate(OutputStream outputStream); void setDelegate(OutputStream delegate); @Override void write(int b); @Override void write(@NotNull byte[] b); @Override void write(@NotNull byte[] b, int off, int len); @Override void close();  }### Answer:
@Test public void closeDelegates() throws IOException { OutputStream os1 = mock(OutputStream.class); OutputStreamDelegate outputStreamDelegate = new OutputStreamDelegate(os1); outputStreamDelegate.close(); verify(os1).close(); }