}
public void testPutPrefixedString() throws Exception {
CharsetEncoder encoder;
IoBuffer buf = IoBuffer.allocate(16);
buf.fillAndReset(buf.remaining());
encoder = Charset.forName("ISO-8859-1").newEncoder();
// Without autoExpand
buf.putPrefixedString("ABC", encoder);
Assert.assertEquals(5, buf.position());