public void testAppendISOByteArray() throws Exception {
byte[] b = new byte[] {0x00, 0x20, 0x7F, -0x80, -0x01};
CharArrayBuffer buffer = new CharArrayBuffer(8);
buffer.append(b, 0, b.length);
char[] ch = buffer.toCharArray();
assertNotNull(ch);
assertEquals(5, ch.length);
assertEquals(0x00, ch[0]);
assertEquals(0x20, ch[1]);
assertEquals(0x7F, ch[2]);