Smooks smooks = new Smooks();
smooks.setReaderConfig(new CSVRecordParserConfigurator("firstname,lastname,$ignore$,gender,age,country")
.setBinding(new Binding("people", Person.class, BindingType.LIST)));
JavaResult result = new JavaResult();
smooks.filterSource(new StreamSource(getClass().getResourceAsStream("input-message-05.csv")), result);
List<Person> people = (List<Person>) result.getBean("people");
assertEquals(
"[(Tom, Fennelly, Ireland, Male, 4), (Mike, Fennelly, Ireland, Male, 2), (Linda, Coughlan, Ireland, Female, 22)]",
people.toString());
}