public class ValueBinderExtendedConfigTest extends TestCase {
public void test_01() throws IOException, SAXException {
Smooks smooks = new Smooks(getClass().getResourceAsStream("test_value_01.xml"));
JavaResult result = new JavaResult();
ExecutionContext execContext = smooks.createExecutionContext();
//execContext.setEventListener(new HtmlReportGenerator("target/report/ValueBinderExtendedConfigTest-report.html"));
smooks.filterSource(execContext, new StreamSource(getInput("order-01.xml")), result);
assertEquals("Joe", result.getBean("customerName"));
assertEquals(123123, result.getBean("customerNumber"));
assertEquals(Boolean.TRUE, result.getBean("privatePerson"));
assertEquals(1163616328000L, ((Date) result.getBean("date")).getTime());
assertNull(result.getBean("product"));
}