### Question:
ByteCountingCallbackInputStreamWrapper extends InputStream { @Override public void close() throws IOException { inputStream.close(); } ByteCountingCallbackInputStreamWrapper(
			final ConnectionProgressStatusListener connectionProgressStatusListener, final InputStream inputStream); @Override int read(); @Override int read(final byte[] b, final int off, final int len); @Override int read(final byte[] b); @Override int available(); @Override void close(); @Override synchronized void mark(final int readlimit); @Override boolean markSupported(); @Override synchronized void reset(); @Override long skip(final long n);  }### Answer:
@Test public void testClose() throws Exception { InputStream dummyInputStream = Mockito.mock(InputStream.class); ConnectionProgressStatusListener listener = Mockito.mock(ConnectionProgressStatusListener.class); ByteCountingCallbackInputStreamWrapper byteCountingCallbackInputStream = new ByteCountingCallbackInputStreamWrapper( listener, dummyInputStream); byteCountingCallbackInputStream.close(); Mockito.verify(dummyInputStream).close(); }