public class AuthenticatorTestUtils {
public static IDPWebBrowserSSOValve createIdentityProvider(String baseClassLoaderPath) {
Thread.currentThread().setContextClassLoader(createContextClassLoader(baseClassLoaderPath));
IDPWebBrowserSSOValve idpWebBrowserSSOValve = new IDPWebBrowserSSOValve();
MockCatalinaContext catalinaContext = new MockCatalinaContext();
idpWebBrowserSSOValve.setContainer(catalinaContext);
try {
idpWebBrowserSSOValve.start();
} catch (LifecycleException e) {
e.printStackTrace();
}
return idpWebBrowserSSOValve;