public void test_badxsl() throws IOException, SAXException {
Smooks smooks = new Smooks(getClass().getResourceAsStream("bad-xsl-config.xml"));
try {
smooks.filterSource(smooks.createExecutionContext(), new StreamSource(new StringReader("<doc/>")), null);
fail("Expected SmooksConfigurationException.");
} catch(SmooksConfigurationException e) {
assertEquals("Error loading Templating resource: Target Profile: [[org.milyn.profile.Profile#default_profile]], Selector: [#document], Selector Namespace URI: [null], Resource: [/org/milyn/templating/xslt/bad-stylesheet.xsl], Num Params: [0]", e.getCause().getMessage());
}
}