test(FilterSettings.DEFAULT_DOM, true, "<a><d><e>some text</e></d><something></something></a>");
}
public void test(FilterSettings filterSettings, boolean keepChildren, String expected) throws IOException, SAXException {
Smooks smooks = new Smooks();
StringResult result = new StringResult();
smooks.setFilterSettings(filterSettings);
smooks.addVisitor(new RemoveElement().setKeepChildren(keepChildren), "b");
smooks.filterSource(new StringSource("<a><b><d><e>some text</e></d></b><something/></a>"), result);
XMLUnit.setIgnoreWhitespace( true );
XMLAssert.assertXMLEqual(new StringReader(expected), new StringReader(result.getResult()));
}