	@Test
	public void testBasicScript() throws PhonScriptException {

		final String script = "x = 1 + 1\n";
		
		final BasicScript bs = new BasicScript(script);
		final PhonScriptContext ctx = bs.getContext();
		final Scriptable scope = ctx.createImporterScope();
		final Object val = ctx.exec(scope);
		
		Assert.assertEquals(Integer.class, val.getClass());
		Assert.assertEquals(2, (int)Integer.valueOf(val.toString()));
		
		Assert.assertEquals(val, scope.get("x", scope));
	}