Junit Test Cases in AEMJunit in AEM with power-mock. Maven dependency <dependency> <groupId>org.powermock</groupId> <artifactId>powermock-m