public void testInputStreamToOutputStreamStreamAPI() throws Exception {
TransformIdentity transformIdentity = new TransformIdentity();
final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
transformIdentity.setOutputStream(byteArrayOutputStream);
transformIdentity.transform(this.getClass().getClassLoader().getResourceAsStream(
"ie/baltimore/merlin-examples/merlin-xmldsig-twenty-three/xml-stylesheet.b64"));
Assert.assertEquals(17786, byteArrayOutputStream.size());
}