### Question:
ExactSizeInputStream extends FilterInputStream { @Override public void mark(int readlimit) { throw new UnsupportedOperationException(); } ExactSizeInputStream(InputStream in, int numBytes); @Override int available(); @Override int read(); @Override int read(final byte[] b, final int off, int len); @Override long skip(final long n); @Override boolean markSupported(); @Override void mark(int readlimit);  }### Answer:
@Test public void testMark() throws IOException { ExactSizeInputStream s = new ExactSizeInputStream(byteStream("he"), 5); assertFalse(s.markSupported()); try { s.mark(1); fail("Mark should not succeed"); } catch (UnsupportedOperationException uoe) { } }