tail light socket question

Is there a way to test the lights if out of the car? Car is at the paint shop. Also how did you remove sockets to replace pins?