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