callback.setRealm(TEST_WTREALM);
} else if (callbacks[i] instanceof WAuthCallback) {
WAuthCallback callback = (WAuthCallback) callbacks[i];
callback.setWauth(TEST_WAUTH);
} else if (callbacks[i] instanceof WReqCallback) {
WReqCallback callback = (WReqCallback) callbacks[i];
callback.setWreq(TEST_WREQ);
} else if (callbacks[i] instanceof IDPCallback) {
IDPCallback callback = (IDPCallback) callbacks[i];
callback.setIssuerUrl(new URL(TEST_IDP));
} else if (callbacks[i] instanceof SignInQueryCallback) {
SignInQueryCallback callback = (SignInQueryCallback) callbacks[i];
Map<String, String> queryParamMap = new HashMap<String, String>();
queryParamMap.put("pubid", "myid");
queryParamMap.put("testenc", "<=>");
callback.setSignInQueryParamMap(queryParamMap);
} else {
throw new UnsupportedCallbackException(callbacks[i], "Unrecognized Callback");
}
}
}