I agree ovrszd,
I did find that my pump drive shaft mates perfectly with a 5/8” socket, depending On OP skill set/tools on hand a good 1/2” drive drill can be used for testing purposes. I did sacrifice a socket extension to use to drive the pump, cut it off so it could be inserted in the drills chuck. This was after getting the new pump.
I was concerned, in my case that I had some sort of blockage that caused the damage to the drive gear.
I sure didn’t want to do all the work only to have the same failure down the road.
I found that I could ”clock” the new pump 90 degrees and connect it to the hoses. With this setup I tested the hydraulics with my drill, with a zip tie on the drills trigger, I could run the pump and test the front end loader. That drill had enough power to test all functions.
Mike