pigOStream = new FileWriter(basedir + "/output1.pig");
String[] arg = null;
String[] argFiles = {basedir+"/ConfFileWithInvalidLines.txt"};
try {
ps.genSubstitutedFile(pigIStream , pigOStream , arg , argFiles);
fail ("Should have thrown an exception");
} catch (ParseException e) {
assertTrue(e.getMessage().startsWith("Encountered \" <IDENTIFIER> \"is \"\" at line 2, column 6."));
}
}