@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();
            }
        };
    }
@ 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 ( ) ; } } ; }
{@inheritDoc}