If you're replacing it and have fear that the new one is fake or bad and might blow everything up, connect it with a 100-500W resistive load in series with the mains input (I.E. a light bulb or a heater) so it limits the current, avoiding a destructive short.
Plus the light bulb will provide visual feedback if there's a short.
If you're troubleshootign a non-working device, the internal mosfet is very unlikey to go bad without catastrophic consequences, 99% of the time it'll blow up the entire thing.
If the fuse isn't blowing up on, start by measuring voltage in FB and VCC pins.
But remember it's mains voltage, so be safe!
The circuit in these is quite simple, so it should be pretty easy to trace the issue.
A shorted rectifier or diode, broken resistor, bad optocoupler...
If the old one blew up, the current sense resistors (Connected to CS pin) usually go bad too, so check them.