assertEquals('B', buf.get(3));
assertEquals(0, buf.get(4));
assertEquals('C', buf.get(5));
buf.putString("D", 10, encoder);
assertEquals(10, buf.position());
buf.clear();
assertEquals(0, buf.get(0));
assertEquals('D', buf.get(1));
assertEquals(0, buf.get(2));
assertEquals(0, buf.get(3));