ExtendedOrder inExtendedOrder = new ExtendedOrder();
List<OrderItem> inOrderItems = new ArrayList<OrderItem>();
Header inHeader = new Header();
JavaResult result = new JavaResult();
result.getResultMap().put("order", inExtendedOrder);
result.getResultMap().put("orderItemList", inOrderItems);
result.getResultMap().put("headerBean", inHeader);
ExecutionContext execContext = smooks.createExecutionContext();
//execContext.setEventListener(new HtmlReportGenerator("/target/report.html"));
smooks.filterSource(execContext, new StreamSource(getInput("order-01.xml")), result);
ExtendedOrder order = (ExtendedOrder) result.getBean("order");
assertSame(inExtendedOrder, order);
assertSame(inOrderItems, order.getOrderItems());
assertSame(inHeader, order.getHeader());