Looks at the IC's datasheet. Check that all of the facts stated in the datasheet are true of the IC in front of you.
For example, if it's an op-amp, check that is amplifies. If it's a microcontroller, check that it communicates over JTAG and computes. You'll have to be much more specific about the IC you have before we can provide any remotely applicable advice, I suspect.