Drop a dowel down the bore with the bolt forward. Make a mark on the dowel at the muzzle.

IIRC, that's the official way.

Shotgun also has to be 26" overall.

This post not to be construed as legal advice.