code: @Override
      public ServletInputStream getInputStream() throws IOException {
          final ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(streamContents.getBytes());
          return new ServletInputStream() {
              @Override
              public int read() throws IOException {
                  return byteArrayInputStream.read();
              }
          };
      }
docs: {@inheritDoc}