final SessionOutputBuffer outbuf = new SessionOutputBufferImpl(1024, 128);
final HttpTransportMetricsImpl metrics = new HttpTransportMetricsImpl();
final IdentityEncoder encoder = new IdentityEncoder(channel, outbuf, metrics);
outbuf.writeLine("header");
createTempFile();
RandomAccessFile testfile = new RandomAccessFile(this.tmpfile, "rw");
try {
testfile.write("stuff;".getBytes(Consts.ASCII));