Engine swaps in mowers are easy. As long as you stay within a reasonable horsepower range of the original engine, everything should bolt up. Beyond that it's just a matter of paying attention to such things like the exhaust location, which way the throttle linkage works, etc....
Oh, and shaft diameter and length should match or be very close. Otherwise you'll have to buy new engine pulleys.