Active magnetic compensation prototype for a neutron electric dipole moment experiment