ks1.setFile(KEYSTORE_FILE);
truststore.setKeyStore(ks1);
certStores.getTrustManager().add(truststore);
config.setCertificateStores(certStores);
CallbackType authType = new CallbackType();
authType.setType(ArgumentType.STRING);
authType.setValue(AUTH_TYPE_VALUE);
CallbackType tokenRequest = new CallbackType();
tokenRequest.setType(ArgumentType.STRING);
tokenRequest.setValue(TEST_WREQ);
AudienceUris audienceUris = new AudienceUris();
audienceUris.getAudienceItem().add(AUDIENCE_URI_1);
config.setAudienceUris(audienceUris);
protocol.setAuthenticationType(authType);
protocol.setRequest(tokenRequest);
protocol.setRoleDelimiter(ROLE_DELIMITER);
protocol.setRoleURI(ROLE_URI);
ClaimTypesRequested claimTypeReq = new ClaimTypesRequested();
ClaimType claimType = new ClaimType();
claimType.setOptional(true);
claimType.setType(CLAIM_TYPE_1);
claimTypeReq.getClaimType().add(claimType);
ClaimType claimType2 = new ClaimType();
claimType2.setOptional(true);
claimType2.setType(CLAIM_TYPE_2);
claimTypeReq.getClaimType().add(claimType2);
protocol.setClaimTypesRequested(claimTypeReq);
CallbackType freshness = new CallbackType();
freshness.setValue(FRESHNESS_VALUE);
protocol.setFreshness(freshness);
CallbackType homeRealm = new CallbackType();
homeRealm.setType(ArgumentType.CLASS);
homeRealm.setValue(HOME_REALM_CLASS);
protocol.setHomeRealm(homeRealm);
CallbackType realm = new CallbackType();
realm.setValue(TARGET_REALM);
protocol.setRealm(realm);
protocol.setReply(REPLY);
protocol.setVersion(PROTOCOL_VERSION);
CallbackType issuer = new CallbackType();
issuer.setValue(ISSUER);
protocol.setIssuer(issuer);
TokenValidators x = new TokenValidators();
x.getValidator().add("org.apache.cxf.fediz.CustomValidator");
x.getValidator().add("org.apache.cxf.fediz.core.NonexistentCustomValidator");