I do get the error in my PowerMock test and I found out that it runs fine outside of the test:
Caused by: java.lang.IllegalAccessError: superclass access check failed: class
die.verwandlung.GregorSamsa (in module jdk.translet) cannot access class
com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet (in unnamed module
@0x12c60152) because module jdk.translet does not read unnamed module @0x12c60152
I tried to --add-reads jdk.translet=ALL-UNNAMEDbut the module is not know to java.
Does anybody have a solution for this?