I am trying to run the test for one of my Model class for Custom Render
Condition. Its testing if current is a template allowed to show the
tab/field in dialog. When I am running test for this code using AemMock
and JUnit4 its failing when debug I found its not able to get template
from the page object: final Template pageTemplate = page.getTemplate();
//The above, getTemplate returns null for my Unit test below
templatePathOfCurrentPage = pageTemplate.getName(); But at the same time
if I change...