public void testOutputBufferOperations() throws IOException {
ByteArrayOutputStream outstream = new ByteArrayOutputStream();
WritableByteChannel channel = Channels.newChannel(outstream);
ContentEncoder encoder = new MockupEncoder(channel);
SimpleOutputBuffer buffer = new SimpleOutputBuffer(4, new DirectByteBufferAllocator());
buffer.write(EncodingUtils.getAsciiBytes("stuff"));
buffer.write(';');