Yep, exactly what Mike said.
The mains transformer wont be super happy with 400hz instead of 50hz but should be fine for the short time needed to test your device.
Just keep an eye on it's temperature, or pick a larger one than necessary power wise.
Transformers can be grossly over-driven if you only need to use them for 20 seconds at a time, or whatever.
If building a more long-term system you can just attach a normally connected thermal switch to the top of the transformer metal core and use that to cut the power if it gets too hot from too much use. 55degC or so.