static void testBuffer(String str, String prefix, LinkedBuffer tail, int nextBufferSize) throws IOException
    {
        byte[] data = str.getBytes();
        WriteSession session = new WriteSession(tail, nextBufferSize);
        session.size += (tail.offset - tail.start);
        tail = B64Code.encode(data, 0, data.length, session, tail);

        byte[] result = session.toByteArray();
        verifyB64(str, prefix, result);
    }
Tests for base 64 encoding.

@author David Yu
@created Sep 27, 2010
protostuff-api/src/test/java/io/protostuff/B64CodeTest.java