final SessionOutputBuffer outbuf = new SessionOutputBufferImpl(1024, 16, null, this.allocator);
for (final String teststr : teststrs) {
outbuf.writeLine(teststr);
}
//this write operation should have no effect
outbuf.writeLine((String)null);
outbuf.writeLine((CharArrayBuffer)null);
final ByteArrayOutputStream outstream = new ByteArrayOutputStream();
final WritableByteChannel outChannel = newChannel(outstream);
outbuf.flush(outChannel);