ClassLoader tccl = Thread.currentThread().getContextClassLoader();
URL configURL = tccl.getResource("config/test-idp-metadata-file-config.xml");
URL[] urls = new URL[] { configURL };
MockCatalinaContextClassLoader tcl = new MockCatalinaContextClassLoader(urls);
tcl.associate("/WEB-INF/picketlink-idfed.xml", configURL.openStream());
tcl.associate("/WEB-INF/picketlink-handlers.xml",
tccl.getResourceAsStream("saml2/post/sp/employee/WEB-INF/picketlink-handlers.xml"));
tcl.associate("/WEB-INF/testshib.org.idp-metadata.xml",
tccl.getResourceAsStream("metadata/testshib.org.idp-metadata.xml"));
tcl.setProfile("DUMMY");