{
NodeScript script = env.createScript(name,
new File("./target/test-classes/testscripts/" + name),
null);
try {
ScriptStatus status = script.execute().get();
assertEquals(0, status.getExitCode());
} catch (ExecutionException ee) {
if (ee.getCause() instanceof RhinoException) {
System.err.println(((RhinoException)ee.getCause()).getScriptStackTrace());
}
ee.getCause().printStackTrace(System.err);