// normal case
ByteBuffer in = ByteBuffer.wrap(getUnibytes());
out = decoder.decode(in);
assertEquals(out.position(), 0);
assertEquals(out.limit(), unistr.length());
assertEquals(out.remaining(), unistr.length());
assertEquals(new String(out.array(), 0, out.limit()), unistr);
}
public void testDecodeByteBufferException()