Hi, You can add the json and map to the resource public final AemContext ctx = new AemContext(); ctx.load().json("/com/myproject/models/damresource/damFile.json", "/content/dam/cf"); Resource mockDamResource = ctx.resourceResolver().getResource("/content/dam/cf");