while (xmlSecEventReader.hasNext()) {
XMLSecEvent xmlSecEvent = (XMLSecEvent) xmlSecEventReader.nextEvent();
transformEnvelopedSignature.transform(xmlSecEvent);
}
transformEnvelopedSignature.doFinal();
Assert.assertEquals(207, byteArrayOutputStream.size());
}
@Test