CharArrayBuffer chbuffer = new CharArrayBuffer(16);
HttpDataTransmitterMockup transmitter = new HttpDataTransmitterMockup();
for (int i = 0; i < teststrs.length; i++) {
chbuffer.clear();
chbuffer.append(teststrs[i]);
transmitter.writeLine(chbuffer);
}
//these write operations should have no effect
transmitter.writeLine((String)null);
transmitter.writeLine((CharArrayBuffer)null);
transmitter.flush();