UsernameToken token = new UsernameToken("joe", null, null, false, null, null);
EasyMock.expect(ctx2.get(SecurityToken.class.getName())).andReturn(token).anyTimes();
SAMLTokenIssueOperation id = new SAMLTokenIssueOperation();
CertificateVerifierConfig certificateVerifierConfig = new CertificateVerifierConfig();
certificateVerifierConfig.setTrustCertAliases(Arrays.asList("cacert"));
certificateVerifierConfig.setKeySignAlias(keySignAlias);
certificateVerifierConfig.setKeySignPwd(keySignPwd);
certificateVerifierConfig.setStorePath(storePath);
certificateVerifierConfig.setStorePwd(storePwd);
id.setCertificateVerifierConfig(certificateVerifierConfig);
JAXBElement<String> tokenType = new JAXBElement<String>(
new QName("http://docs.oasis-open.org/ws-sx/ws-trust/200512",
"TokenType"), String.class,