}
}
@Test
public void testBasic1(){
PoolOutputBuffer buf = new PoolOutputBuffer();
buf.write( "eliot".getBytes() );
assertEquals( 5 , buf.getPosition() );
assertEquals( 5 , buf.size() );
assertEquals( "eliot" , buf.asString() );
buf.setPosition( 2 );
buf.write( "z".getBytes() );
assertEquals( "elzot" , buf.asString() );
buf.seekEnd();
buf.write( "foo".getBytes() );
assertEquals( "elzotfoo" , buf.asString() );
buf.seekStart();
buf.write( "bar".getBytes() );
assertEquals( "barotfoo" , buf.asString() );
}