SqlStreamInput/Output use TransportVersion from a read-in Version constant. We need to remove the useage of `transportVersion` field
x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/AbstractSqlWireSerializingTestCase.java
@Override
    protected T copyInstance(T instance, TransportVersion version) throws IOException {
        Version nodeVersion = Version.fromId(version.id);
        ZoneId zoneId = instanceZoneId(instance);
        SqlStreamOutput out = SqlStreamOutput.create(nodeVersion, zoneId);
        instance.writeTo(out);
        out.close();
        try (SqlStreamInput in = SqlStreamInput.fromString(out.streamAsString(), getNamedWriteableRegistry(), nodeVersion)) {
            return instanceReader().read(in);
        }
    }
    /**
     * Returns a {@link Writeable.Reader} that can be used to de-serialize the instance
     */
    protected abstract Writeable.Reader<T> instanceReader();
    protected ZoneId instanceZoneId(T instance) {
        return randomZone();
    }
    @Override
    protected NamedWriteableRegistry getNamedWriteableRegistry() {
        return new NamedWriteableRegistry(Cursors.getNamedWriteables());
    }
}