### Question:
RandomAccessFileInputStream extends InputStream { @Override public void reset() throws IOException { if (mark < 0) { throw new IOException("mark not set"); } raf.seek(mark); } RandomAccessFileInputStream(File file);  RandomAccessFileInputStream(File file, long rangeOffset, long rangeLength); void setRange(long rangeOffset, long rangeLength); @Override int available(); long getPosition(); @Override void close(); @Override int read(); @Override int read(byte[] b, int off, int len); @Override int read(byte[] b); @Override long skip(long n); @Override boolean markSupported(); @Override void mark(int readlimit); @Override void reset(); long length();  }### Answer:
@Test(expected = IOException.class) public void testReset_NoMarkSet() throws IOException { stream.reset(); }