// so use the unique name supported by the 1.6R7 version factory.
ScriptEngine engine = new ScriptEngineManager().getEngineByName("rhino-nonjdk");
assertNotNull("engine should not be null",engine);
XMLHelper convertor = XMLHelper.getArgHelper(engine);
Object o = convertor.toScriptXML(createOMElement("<a><b>petra</b></a>"));
OMElement om = convertor.toOMElement(o);
assertEquals("<a><b>petra</b></a>", om.toString());
Bindings bindings = engine.createBindings();
bindings.put("o", o);
Object x = engine.eval("typeof o", bindings);