Infosys interview question

How to unit test a controller?