### Question:
SAML2CryptoProviderImpl extends STSCryptoProviderBase implements SAML2CryptoProvider { @Override public PrivateKey getIDPPrivateKey(String keyAlias, String keyPassword) throws TokenCreationException { return getPrivateKey(keyAlias, keyPassword); } SAML2CryptoProviderImpl(final SAML2Config saml2Configuration); @Override X509Certificate getIDPX509Certificate(String certAlias); @Override X509Certificate getSPX509Certificate(String certAlias); @Override PrivateKey getIDPPrivateKey(String keyAlias, String keyPassword);  }### Answer:
@Test public void testCreation() throws Exception { SAML2CryptoProvider keyProvider = new SAML2CryptoProviderImpl(createSAML2Config()); assertTrue(keyProvider.getIDPPrivateKey("test", "changeit") != null); }