PingWind Interview Question

Explain how to test a method in Apex?