public void testReadSequence() {
String data[] = { "one", "one", "two", "three", "five", "eight", "thirteen", "twenty-one" };
Buffer buf = new Buffer();
OutputStream oStream = new OutputStream(buf);
oStream.write_long(data.length);
for (int i = 0; i < data.length; ++i) {
oStream.write_string(data[i]);
}
InputStream iStream = oStream.create_input_stream();