InputStream resourceAsStream = Rhinodo.class.getClassLoader().getResourceAsStream("META-INF/env/path.js");
ctx.evaluateReader(global,new InputStreamReader(resourceAsStream), "path",-1, null);
Function function = (Function) exports.get("resolve");
Object result = (Object) function.call(ctx, global, exports, new Object[]{"../hello"});
assertEquals("/a/b/hello", Context.toString(result));
result = (Object) function.call(ctx, global, exports, new Object[]{"./bye"});
assertEquals("/a/b/c/bye", Context.toString(result));