SessionOutputBuffer outbuf = new SessionOutputBuffer(1024, 16);
for (int i = 0; i < teststrs.length; i++) {
outbuf.writeLine(teststrs[i]);
}
//this write operation should have no effect
outbuf.writeLine((String)null);
outbuf.writeLine((CharArrayBuffer)null);
ByteArrayOutputStream outstream = new ByteArrayOutputStream();
WritableByteChannel outChannel = newChannel(outstream);
outbuf.flush(outChannel);