*
* @throws Exception if an error occurs while running the test.
*/
public void testCreateTokenProvider() throws Exception {
WSTrustServiceFactory factory = WSTrustServiceFactory.getInstance();
SecurityTokenProvider provider = factory.createTokenProvider(
"org.picketlink.test.identity.federation.core.wstrust.SpecialTokenProvider", null);
assertNotNull("Unexpected null token provider", provider);
assertTrue("Unexpected token provider type", provider instanceof SpecialTokenProvider);
provider = factory.createTokenProvider(
"org.picketlink.identity.federation.core.wstrust.plugins.saml.SAML20TokenProvider",