public void testSkipFullyOnValidLongStreamCJK()
throws IOException {
final int charLength = 161019;
InputStream in = new ReaderToUTF8Stream(
new LoopingAlphabetReader(charLength, CharAlphabet.cjkSubset()),
charLength, 0, TYPENAME, new CharStreamHeaderGenerator());
in.skip(HEADER_LENGTH); // Skip encoded length added by ReaderToUTF8Stream.
// Returns count in bytes, we are using CJK chars so multiply length
// with 3 to get expected number of bytes.
assertEquals(charLength *3, UTF8Util.skipFully(in, charLength));
}