public void test_getHttps() throws IOException {

    ScriptProcess p = datastore.newProcess(TEST_USER, "getHttps.js", "", "owner");

    ScriptAction r = p.call();

    assertTrue("slept correctly", r instanceof Get);

    p.save();

    Get g = (Get) r;

    g.visit(new ScriptusFacade(datastore, c, m), p);

    p = datastore.getProcess(p.getPid());

    assertTrue("got content", p.getState() instanceof String);

    String content = (String) p.getState();

    assertTrue("content ok", content.contains("User-agent: *"));
  }
  public void test_evalGetBug() throws IOException {

    ScriptProcess p = datastore.newProcess(TEST_USER, "evalgetBUG.js", "", "owner");

    ScriptAction r = p.call();

    assertTrue("slept correctly", r instanceof Get);

    p.save();

    Get g = (Get) r;

    g.visit(new ScriptusFacade(datastore, c, m), p);

    p = datastore.getProcess(p.getPid());

    assertTrue("got content", p.getState() instanceof String);

    r = p.call();

    assertTrue("said correctly", r instanceof Say);

    assertTrue("contains fn def", ((Say) r).getMsg().contains("return new Date().clearTime();"));
  }