Solved
Can someone suggest how to mock JcrUtil.createPath(destinationPath, JcrConstants.NT_FOLDER, session) using AemContextExtension ?
I tried using context.pageManager().create("pagePath", "pageName", "template", "pageTitle", true);
but pageManager is always null. Please give your suggestions on how to mock JcrUtil methods using Junit5