java.lang.IllegalAccessError: class javax.xml.parsers.FactoryFinder (in unnamed module @0x39651a82) cannot access class jdk.xml.internal.SecuritySupport (in module java.xml) because module java.xml does not export jdk.xml.internal to unnamed module @0x39651a82
解决办法:
在测试类上加注解
@PowerMockIgnore({"com.sun.org.apache.xerces.*", "javax.xml.*", "org.xml.*", "javax.management.*", "org.w3c.*"})