String query = "A = load 'y'; all = load 'x';";
try {
ParserTestingUtils.generateLogicalPlan( query );
} catch(Exception ex) {
Assert.assertTrue( ex instanceof MismatchedTokenException );
MismatchedTokenException mex = (MismatchedTokenException)ex;
Assert.assertTrue( mex.token.getText().equals("all") );
return;
}
Assert.fail( "Query is supposed to be failing." );
}