### Question:
CountingInputStream extends FilterInputStream { @Override public void reset() { throw new UnsupportedOperationException("Mark not supported"); } CountingInputStream(InputStream in, ResponseHandler responseHandler); @Override int read(); @Override int read(@NonNull byte[] b); @Override int read(@NonNull byte[] b, int off, int len); @Override boolean markSupported(); @Override void reset();  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void testReset() throws IOException { ResponseHandler responseHandler = mock(ResponseHandler.class); String myString = "Hello! How are you"; InputStream is = new ByteArrayInputStream(myString.getBytes()); CountingInputStream countingInputStream = new CountingInputStream(is, responseHandler); countingInputStream.reset(); }