A laboratory model of the Harris magnetic field