Infosys Interview Question

How to unit test a controller?