String script = "a = load 'dummy'; b = filter a by $0 == 1; store b into 'dummy';\n";
GruntParser parser = new GruntParser(new StringReader(script));
parser.setInteractive(false);
parser.setParams(myPig);
myPig.getPigContext().inExplain = true;
parser.parseStopOnError();
} catch (Exception e) {
e.printStackTrace();
Assert.fail();
}
}