@Test
public void test_invalid_xml2java_config() throws IOException, SAXException {
V1SmooksTransformModel model = (V1SmooksTransformModel)new V1SmooksTransformModel(TransformNamespace.DEFAULT.uri()).setTransformType("XML2JAVA").setFrom(new QName("a")).setTo(new QName("b"));
model.setConfig("/org/switchyard/transform/internal/smooks/smooks-config-01.xml");
try {
new SmooksTransformFactory().newTransformer(null, model);
} catch (RuntimeException e) {
boolean exceptionMatch = e.getMessage().contains("SWITCHYARD016812");
Assert.assertTrue(exceptionMatch);
}
}