The Aharonov-Bohm (AB) effect was tested under conditions where an electron wave and a magnetic field did not overlap: the Meissner effect of the superconductor shielding a toroidal ferromagnet eliminated the leakage field. Using the newly-developed technique of electron holography, conclusive evidence for the AB effect was obtained by detecting a relative phase shift of π between the two electron waves passing through the hole and outside the toroid. The detected phase shift value of exactly π comes from the quantization of the magnetic flux within the superconductor. This quantization assures the complete shielding of the magnetic field.