Cognizant Interview Question

How do u unit test for external file loading scenario?