package fi.nls.test.control;

import javax.servlet.ServletOutputStream;
import javax.servlet.WriteListener;
import java.io.IOException;
import java.io.OutputStream;

public class MockServletOutputStream extends ServletOutputStream {

    private final OutputStream out;

    public MockServletOutputStream(final OutputStream out) {
        this.out = out;
    }

    @Override
    public boolean isReady() {
        return false;
    }

    @Override
    public void setWriteListener(WriteListener writeListener) {
        // Ignore
    }

    @Override
    public void write(int b) throws IOException {
        out.write(b);
    }

}

@@ -626,10 +626,239 @@
 %0A    %7D%0A%0A
+    @Override%0A    public void write(byte%5B%5D b) throws IOException %7B%0A        write(b, 0, b.length);%0A    %7D%0A%0A    @Override%0A    public void write(byte%5B%5D b, int off, int len) throws IOException %7B%0A        out.write(b, off, len);%0A    %7D%0A%0A
 %7D%0A

Add write(byte[] b) and write(byte[] b, int off, int len) methods to MockServletOutputStream