ServletInputStreamAdapter extends ServletInputStream { @Override public void setReadListener(final ReadListener readListener) { throw new UnsupportedOperationException(); }  @Override int read(); @Override int read(final byte[] b); @Override int read(final byte[] b, final int off, final int len); @Override boolean isFinished(); @Override boolean isReady(); @Override void setReadListener(final ReadListener readListener);  }
@Test void shouldNotSupportReadListener() { assertThrows(UnsupportedOperationException.class, () -> unit.setReadListener(Mockito.mock(ReadListener.class))); }