}
public void test_default_writing() throws IOException, SAXException {
Smooks smooks = new Smooks(getClass().getResourceAsStream("DefaultWritingTest.xml"));
StringSource stringSource = new StringSource("<a>aa<b>bbb<c />bbb</b>aaa</a>");
StringResult stringResult = new StringResult();
smooks.filterSource(smooks.createExecutionContext(), stringSource, stringResult);
assertEquals(stringSource.getSource(), stringResult.getResult());
assertTrue(SAXVisitBeforeVisitor.visited);
assertTrue(SAXVisitAfterAndChildrenVisitor.visited);
assertTrue(SAXVisitAfterAndChildrenVisitor.onChildElement);
assertTrue(SAXVisitAfterAndChildrenVisitor.onChildText);
assertTrue(SAXVisitAfterVisitor.visited);