I like to create test classes which can be started on local system connecting to an AEM repository. To be able to use same code as running inside repository, I need to have a proper ResourceResolver initialized. Of course, inside a running AEM instance, I just get it from the SlingHttpServletRequest. How can I get a ResourceResolver from local test class?
Sample code:
ResourceResolver resResolver = ????
PageManager pageMgr = resResolver.adaptTo(PageManager.class);
....