Get two short pieces of insulated cable, and two insulated connector blocks,turn mains power off. Release the live and neutral conductors from the pump, put them into separate connectors and add the short lengths into the pump. You can then test on the connector blocks terminals.
One of those occasions, where a test lamp is invaluable. Just a lamp holder, with a bit of twin flex connected to it, plus some sort of lamp - the smaller, and the lower powered, the better. I've been known, to whip the plug off a table lamp, and use that as a test lamp.