*/
public class SAXFilterTest extends TestCase {
public void test_reader_writer() throws SAXException, IOException {
Smooks smooks = new Smooks(getClass().getResourceAsStream("smooks-config-01.xml"));
ExecutionContext execContext = smooks.createExecutionContext();
String input = new String(StreamUtils.readStream(getClass().getResourceAsStream("test-01.xml")));
StringWriter writer = new StringWriter();
smooks.filterSource(execContext, new StreamSource(new StringReader(input)), new StreamResult(writer));
assertEquals(StreamUtils.trimLines(new StringReader(input)).toString(), StreamUtils.trimLines(new StringReader(writer.toString())).toString());