Problem I encountered with newest available AEM archetype (May 2023) and running unit tests is the method:
aemContext.load().json("file.json","/path/in/aem")
It gives out the following exception:
java.lang.IllegalStateException: Unable to enable secure processing
This is a very common way to load content on to the test runtime. I'm curious why this doesn't just work on the official maven project.