ByteInput in = new ByteArrayByteInput( new byte[] { 'A", 'B", 'C", (byte) 0xc0, (byte) 0x80, 0, 'E" }); assertEquals('A", in.readByte()); assertEquals("BC\u0000", Mutf8.decode(in, new char[3])); assertEquals('E", in.readByte());
assertEquals(Arrays.toString(new byte[] { 'B", 'C", (byte) 0xc0, (byte) 0x80 }), Arrays.toString(Mutf8.encode("BC\u0000")));