//still to complete.
@Test
public void testContentOfPigScript() throws ExecException, IOException {
PigServer pigServer = new PigServer("LOCAL");
pigServer.registerScript("/tmp/pigScript.txt");
//pigServer.registerQuery("A = LOAD 'mapreduce.jdbc.hiho.input.outputPath' USING PigStorage(',') AS (URL:chararray,PAGEVIEW:long);");
/*pigServer.dumpSchema("A") ;
String s;
InputStream fileWithStdOutContents = new DataInputStream( new BufferedInputStream( new FileInputStream(new File("stdout.redirected"))));
BufferedReader reader = new BufferedReader(new InputStreamReader(fileWithStdOutContents));