@Test
public void testSP() throws ParsingException {
ClassLoader tcl = Thread.currentThread().getContextClassLoader();
InputStream configStream = tcl.getResourceAsStream("parser/config/picketlink-sp.xml");
PicketLinkConfigParser parser = new PicketLinkConfigParser();
Object result = parser.parse(configStream);
assertNotNull(result);
PicketLinkType picketlink = (PicketLinkType) result;
SPType sp = (SPType) picketlink.getIdpOrSP();
assertNotNull(sp);
assertEquals("REDIRECT", sp.getBindingType());