}
@SuppressWarnings("deprecation")
@Test
public void testSPTypeWithConfig() throws Exception {
SPPostMetadataConfigurationProvider provider = new SPPostMetadataConfigurationProvider();
InputStream is = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("saml2/logout/sp/sales/WEB-INF/picketlink-idfed.xml");
assertNotNull(is);
provider.setConfigFile(is);
SPType sp = provider.getSPConfiguration();
assertNotNull(sp);
assertEquals("https://sp.testshib.org/Shibboleth.sso/SAML2/POST", sp.getServiceURL());
}