}
@SuppressWarnings("deprecation")
@Test
public void testIDPTypeWithConfig() throws Exception {
IDPMetadataConfigurationProvider provider = new IDPMetadataConfigurationProvider();
InputStream is = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("saml2/logout/idp/WEB-INF/picketlink-idfed.xml");
assertNotNull(is);
provider.setConfigFile(is);
IDPType idp = provider.getIDPConfiguration();
assertNotNull(idp);
assertEquals("https://idp.testshib.org/idp/profile/SAML2/POST/SSO", idp.getIdentityURL());
TrustType trust = idp.getTrust();
assertNotNull(trust);