@Override
    public OutputStream getOutputStream() throws IOException {
        switch (failValue) {
            case 0:
                
                return new OutputStream() {
                    @Override
                    public void write(int b) throws IOException {

                    }
                };
            case 1:
                return null;
            default:
                throw new IOException();

        }
    }