@Test
public void testNoLexicalHandling() throws Exception {

	String input    = TestFileUtils.getTestFile("/Xslt/AnyXml/in.xml");
	String expected = TestFileUtils.getTestFile("/Xslt/AnyXml/NoComments.xml");
	XmlWriter xmlWriter = new XmlWriter();
	
	InputSource inputSource = new InputSource(new StringReader(input));
	XMLReader xmlReader = XmlUtils.getXMLReader(xmlWriter);
	// lexical handling is automatically set, when the contentHandler (xmlWriter in this case) implements  the interface LexicalHandler.
	// To test the output of the XmlWriter without lexical handling, it must be switched off explicitly in the XmlReader
	xmlReader.setProperty("http://xml.org/sax/properties/lexical-handler", null);
	xmlReader.parse(inputSource);
	assertEquals(expected,xmlWriter.toString());
}