@Override
    public int read(byte[] b, int off, int len) throws IOException {
        triggerException();
        int read = super.read(b, off, len);
        if (DEBUG)
            System.err.println("read=" + read + ", off=" + off + ", len=" +len +", b.length=" + b.length);
        return read;
    }
@see com.amazonaws.util.RandomInputStream#read()
aws-java-sdk-test-utils/src/main/java/com/amazonaws/test/util/UnreliableRandomInputStream.java