Hi @djohn98390536, if you are interesting in the AEM Unit test, you can use my code below. However, I would suggest you to refactor your piece of code firstly, because it could lead to NullPointerException.Refactored code (ResourceResolver#getResource, Resource#adaptTo can return null):import org.ap...