@Override
        public void write(byte[] b) throws IOException {
            if (b.length == 0) {
                throw new IOException(ZERO_LENGTH_WRITE);
            }
        }
A stream which does nothing, but complains if it is called and asked to
do nothing.
vespajlib/src/test/java/com/yahoo/io/ByteWriterTestCase.java