RhinoContext context = new RhinoContext();
context.loadEnv("src/test/javascript");
assertThat(context.evalJS("window")).isInstanceOf(Global.class);
assertThat(context.evalJS("Object.create({ test: 'test' });")).isInstanceOf(NativeObject.class);
}
@Test(expected = EcmaError.class)
public void failWithoutLoadingEnvAndManipulatingDOMStuff() {
RhinoContext context = new RhinoContext();