FederationProtocol fp = (FederationProtocol)ctx.getProtocol();
Object issuerObj = fp.getIssuer();
Assert.assertTrue(issuerObj instanceof CallbackHandler);
CallbackHandler issuerCB = (CallbackHandler)issuerObj;
IDPCallback callbackIDP = new IDPCallback(null);
issuerCB.handle(new Callback[] {callbackIDP});
String issuerURL = callbackIDP.getIssuerUrl().toString();
Assert.assertEquals(TestCallbackHandler.TEST_IDP, issuerURL);
Object wAuthObj = fp.getAuthenticationType();
Assert.assertTrue(wAuthObj instanceof CallbackHandler);
CallbackHandler wauthCB = (CallbackHandler)wAuthObj;