I started switching over to Junit 5 (bulk of my tests suites still use Junit4 + AEM Mocks) and noticed an issue where when I interact with the currentResource, i get an NPE because the PageManager object is null.
It appears that the AEM Mocks resourceResolver object cannot be adapted to the PageManager, thus null.
I switched the code to use Junit4 + Junit4 Mocks and everything is fine, so i assume this is a bug somewhere in AEM mocks. AFIAK I'm using the latest of everything (see below).
Here are my dep versions... do note i use both Junit and Junit5 in this project; however this test suite (test file) is a Junit5 test file.