//File file = new File(this.getClass().getResource("request.xml").toString()) will break this test
File file = new File(this.getClass().getResource("request.xml").getFile());
StreamSource requestSource = new StreamSource(file);
XMLFragment xmlFragment = new XMLFragment(requestSource);
java.io.ByteArrayOutputStream bout = new java.io.ByteArrayOutputStream();
xmlFragment.writeTo(bout);
assertTrue(new String(bout.toByteArray()).indexOf("Hello") > -1);
}
}