auth.setContainer(ctx);
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");
tcl.setDelegate(tccl);
Thread.currentThread().setContextClassLoader(tcl);
auth.testStart();
assertEquals("https://idp.testshib.org/idp/profile/SAML2/POST/SSO", auth.getIdentityURL());
X509Certificate idpCert = auth.getIdpCertificate();