Hi @Parvathy_C , Please try below.Map<String, Object> params = new HashMap<>();params.put(resourceResolverFactory.SUBSERVICE, systemUserName);ResourceResolver resourceResolver = mock(ResourceResolver.class);ResourceResolverFactory resourceResolverFactory = mock(ResourceResolverFactory.class);when(re...