assertEquals(0, buf.get(2));
assertEquals(0, buf.get(3));
buf.putString("EFG", 4, encoder);
assertEquals(4, buf.position());
buf.clear();
assertEquals(0, buf.get(0));
assertEquals('E', buf.get(1));
assertEquals(0, buf.get(2));
assertEquals('F', buf.get(3));
assertEquals(0, buf.get(4)); // C may not be overwritten