test("smooks-config-sax.xml");
}
private void test(String config) throws IOException, SAXException {
Map beans = Main.runSmooksTransform(config);
RollingStockList rollingstocks = (RollingStockList) beans.get("rollingstocks");
// Just some really basic checks
assertEquals(3, rollingstocks.size());
assertEquals(1, rollingstocks.get(0).getVehicles().size());
assertEquals(2, rollingstocks.get(1).getVehicles().size());
assertEquals(1, rollingstocks.get(2).getVehicles().size());
assertEquals(1, rollingstocks.get(2).getVehicles().get(0).getComments().size());
}