String strCmd = "a = load 'input1'as (b: bag{t(i: int, c:chararray, f: float)});\n";
ByteArrayInputStream cmd = new ByteArrayInputStream(strCmd.getBytes());
InputStreamReader reader = new InputStreamReader(cmd);
Grunt grunt = new Grunt(new BufferedReader(reader), context);
try {
grunt.exec();
} catch (Exception e) {
PigException pe = LogUtils.getPigException(e);
String msg = (pe == null? e.getMessage(): pe.getMessage());
assertTrue(msg.contains("Encountered \" \";"));
}