### Question:
RemoteExecutionBinaryResultInputStream extends InputStream { @Override public void reset() throws IOException { throw new UnsupportedOperationException("reset is not supported"); } RemoteExecutionBinaryResultInputStream(final IRODSMidLevelProtocol irodsCommands, final int fileDescriptor); int getFileDescriptor(); @Override int available(); @Override void close(); @Override synchronized void mark(final int readlimit); @Override boolean markSupported(); @Override int read(final byte[] b, final int off, final int len); @Override int read(final byte[] b); @Override void reset(); @Override long skip(final long n); @Override int read(); static final Logger log; }### Answer:
@Test(expected = UnsupportedOperationException.class) public void testReset() throws Exception { IRODSMidLevelProtocol irodsCommands = Mockito.mock(IRODSMidLevelProtocol.class); RemoteExecutionBinaryResultInputStream bis = new RemoteExecutionBinaryResultInputStream(irodsCommands, 1); bis.reset(); bis.close(); }