I am getting this error while running JUnits in Spring Java Project IntelliJ for some of the JUnits only, which is making real connection with external system with URL
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I installed zscaler certificate in jdk\jre\lib\security\cacerts keystore and updated cacerts under directory java\test\resources\certs location. It resolved the issue.