### Question:
B2InputStreamExcerpt extends InputStream { @Override public void close() throws IOException { inputStream.close(); } B2InputStreamExcerpt(InputStream inputStream,
                                long start,
                                long length); @Override int read(); @Override int read(byte[] b); @Override int read(byte[] b,
                    int off,
                    int len); @Override long skip(long n); @Override int available(); @Override void close(); long getExcerptStart(); long getExcerptLength();  }### Answer:
@Test public void testClose() throws IOException { final InputStream in = mock(InputStream.class); excerpt(in, 0, 10).close(); verify(in, times(1)).close(); }