assertEquals(WSTrustConstants.ISSUE_REQUEST, requestToken.getRequestType().toASCIIString());
assertEquals(SAMLUtil.SAML2_TOKEN_TYPE, requestToken.getTokenType().toASCIIString());
// Now for the writing part
ByteArrayOutputStream baos = new ByteArrayOutputStream();
WSTrustRequestWriter rstWriter = new WSTrustRequestWriter(baos);
rstWriter.write(requestToken);
byte[] data = baos.toByteArray();
Logger.getLogger(WSTrustSecondaryParametersTestCase.class).debug(new String(data));
Document doc = DocumentUtil.getDocument(new ByteArrayInputStream(data));
JAXPValidationUtil.validate(DocumentUtil.getNodeAsStream(doc));