@Test
public void testLoadPKCS12Keystore() throws CMException, KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException {

	KeyStore pkcs12Keystore = credentialManager.loadPKCS12Keystore(new File(privateKeyFileURL.getPath()).toPath(), privateKeyAndPKCS12KeystorePassword);
	
	Key privateKey2 = null;
	Certificate[] privateKeyCertChain2 = null;
	
	Enumeration<String> aliases = pkcs12Keystore.aliases();
	while (aliases.hasMoreElements()) {
		// The test-private-key-cert.p12 file contains only one private key
		// and corresponding certificate entry
		String alias = aliases.nextElement();
		if (pkcs12Keystore.isKeyEntry(alias)) { // is it a (private) key entry?
			privateKey2 = pkcs12Keystore.getKey(alias,
					privateKeyAndPKCS12KeystorePassword.toCharArray());
			privateKeyCertChain2 = pkcs12Keystore.getCertificateChain(alias);
			break;
		}
	}
	assertNotNull(privateKey2);
	assertNotNull(privateKeyCertChain2);
}