Updated write(ByteBuffer) test to reflect addition of call to byteBuffer.position().