Proof-of-principle demonstration of a translating coils-based method for measuring the magnetic field of axially-symmetric magnets