test_02(FilterSettings.DEFAULT_SAX);
}
public void test_02(FilterSettings filterSettings) throws IOException, SAXException {
Smooks smooks = new Smooks(getClass().getResourceAsStream("test_bean_02.xml"));
JavaResult result = new JavaResult();
smooks.setFilterSettings(filterSettings);
ExecutionContext execContext = smooks.createExecutionContext();
//execContext.setEventListener(new HtmlReportGenerator("/zap/report.html"));
smooks.filterSource(execContext, new StreamSource(getInput("order-01.xml")), result);
ExtendedOrder order = (ExtendedOrder) result.getBean("order");
BeanBindingExtendedConfigTest.assertOrderOK(order, true);
assertNotNull(result.getBean("headerBean"));
assertNull(result.getBean("headerBeanHash"));
assertNull(result.getBean("orderItemList"));
assertNull(result.getBean("orderItemArray"));
assertNull(result.getBean("orderItem"));
}