private InputStream getStream(int length) {
Reader src = new LoopingAlphabetReader(length,
CharAlphabet.modernLatinLowercase());
InputStream is = new ReaderToUTF8Stream(
src, length, 0, "CLOB", new ClobStreamHeaderGenerator(false));
assertTrue("The stream doesn't support mark/reset", is.markSupported());
return is;
}
/**
* Checks the beginning of the stream, which is expected to consist of five