static char[] toCharArray(byte[] buf)
    {
        char[] c = new char[buf.length];
        for (int i = 0; i < buf.length; i++)
            c[i] = (char) buf[i];
        return c;
    }
Tests for base 64 encoding.

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