}
@Test
public void testEncoding() throws Exception {
Document original = DOMUtils.parse(getClass().getResourceAsStream("/xslt/test.xml"));
OXPath10Expression expr = new OXPath10Expression(null, null, null, null);
URI baseResourceURI = getClass().getResource("/xslt/").toURI();
XslRuntimeUriResolver resolver = new XslRuntimeUriResolver(expr, baseResourceURI);
Document doc = DOMUtils.sourceToDOM(resolver.resolve("test.xml", null));
assertArrayEquals(original.getDocumentElement().getTextContent().trim().getBytes(), doc.getDocumentElement().getTextContent().trim().getBytes());