public void testDecodingFromSessionBufferFile() throws Exception {
ReadableByteChannel channel = new ReadableByteChannelMockup(
new String[] {"stuff;", "more stuff"}, "US-ASCII");
SessionInputBuffer inbuf = new SessionInputBuffer(1024, 256);
inbuf.fill(channel);
assertEquals(6, inbuf.length());
IdentityDecoder decoder = new IdentityDecoder(channel, inbuf);
File tmpFile = File.createTempFile("testFile", ".txt");
FileChannel fchannel = new FileOutputStream(tmpFile).getChannel();