godlyone wrote:To test the solenoid, put the coil inside of it and apply the proper voltage. If it moves, then the magnet field is being generated and is working properly.
Well, almost that simple...
Solenoids in espresso machinery is usually used to stop the flow, or initiate the flow of water somewhere. Depending on the solenoid, it should do one or the other of these things when it moves.
Be careful testing. If a solenoid is open when you apply electricity to it, it could shoot the valve across the room!
The things that need testing are the magnet, the seal, and the spring. If it's supposed to stop water flow when it's not energised, make sure that it doesn't leak and that it opens and lets water flow when it is energised. If it's supposed to allow water to flow when it's not energised, make sure that it's clear, and that the water stops flowing (no leaks) when it's energised.