ServletInputStreamWrapper extends ServletInputStream { @Override public void setReadListener(ReadListener listener) { throw new UnsupportedOperationException(); } ServletInputStreamWrapper(InputStream content); @Override int read(byte[] b); @Override int read(byte[] b, int off, int len); @Override int read(); @Override boolean isFinished(); @Override boolean isReady(); @Override void setReadListener(ReadListener listener);  }
@Test(expected = UnsupportedOperationException.class) public void setReadListener() { underTest.setReadListener(null); }