}
protected ServiceProviderAuthenticator createServiceProvider(String spProfile) {
Thread.currentThread().setContextClassLoader(AuthenticatorTestUtils.createContextClassLoader(spProfile));
SPRedirectSignatureFormAuthenticator sp = new SPRedirectSignatureFormAuthenticator();
sp.setContainer(new MockCatalinaContext());
try {
sp.testStart();
sp.getConfiguration().setIdpUsesPostBinding(false);
} catch (LifecycleException e) {
Assert.fail("Error while creating Employee SP.");
}
return sp;