new Smooks(getClass().getResourceAsStream("config_01.xml"));
}
public void test_02() throws IOException, SAXException {
Smooks smooks = new Smooks(getClass().getResourceAsStream("config_02.xml"));
SmooksResourceConfiguration readerConfig = AbstractParser.getSAXParserConfiguration(smooks.createExecutionContext("A").getDeliveryConfig());
assertEquals("com.ZZZZReader", readerConfig.getResource());
assertEquals("A", readerConfig.getTargetProfile());
List handlers = readerConfig.getParameters("sax-handler");
assertEquals("[com.X, com.Y]", handlers.toString());
List featuresOn = readerConfig.getParameters("feature-on");
assertEquals("[http://a, http://b]", featuresOn.toString());
List featuresOff = readerConfig.getParameters("feature-off");
assertEquals("[http://c, http://d]", featuresOff.toString());
assertEquals("val1", readerConfig.getStringParameter("param1"));
assertEquals("val2", readerConfig.getStringParameter("param2"));
}