teststrs[4] = "And goodbye";
CharArrayBuffer chbuffer = new CharArrayBuffer(16);
SessionOutputBufferMock outbuffer = new SessionOutputBufferMock();
for (int i = 0; i < teststrs.length; i++) {
chbuffer.clear();
chbuffer.append(teststrs[i]);
outbuffer.writeLine(chbuffer);
}
//these write operations should have no effect
outbuffer.writeLine((String)null);