Would you mind if I ask you to update your tests so that they use `EmbeddedByteChannel`?  It should be more future proof.  Passing null will break as soon as the codec accesses it.