@Shaheena_Sheikh , very simple, you would need to add mock resources in the AEMContext. In particular you would want to create pages like:
context.pageManager().create("/content/sample/page1", "page1",
"/apps/sample/templates/homepage", "page1");
And you would want to pass in resolver.resolve("/content/sample/page1");