How to test alternator

Where is your stereo getting power from?On the back of your alt.there is a small silver coloured cap it's a bearing cover,while the car is idlong take anything magnetic and see if it sticks to this cap,DO NOT ANYTHING IN THE ALT.just to the center cap this will only tell you if the alt is good nothing else.