--- old/test/sun/security/pkcs11/KeyStore/Basic.java Mon Jun 8 21:35:21 2015 +++ new/test/sun/security/pkcs11/KeyStore/Basic.java Mon Jun 8 21:35:20 2015 @@ -367,7 +367,7 @@ private static void module() throws Exception { // perform Security.addProvider of P11 provider - ProviderLoader.go(System.getProperty("CUSTOM_P11_CONFIG")); + Security.addProvider(getSunPKCS11(System.getProperty("CUSTOM_P11_CONFIG"))); String KS_PROVIDER = "SunPKCS11-" + System.getProperty("TOKEN");