private void test_goodscript(SmooksResourceConfiguration config) throws InstantiationException, IllegalArgumentException, IOException, SAXException {
GroovyContentHandlerFactory creator = new GroovyContentHandlerFactory();
config.setParameter("new-name", "yyy");
DOMElementVisitor resource = (DOMElementVisitor) creator.create(config);
Document doc = XmlUtil.parseStream(new ByteArrayInputStream("<xxx/>".getBytes()), XmlUtil.VALIDATION_TYPE.NONE, false);
assertEquals("xxx", doc.getDocumentElement().getTagName());
resource.visitAfter(doc.getDocumentElement(), null);
assertEquals("yyy", doc.getDocumentElement().getTagName());
}