String query = "a = load 'testSFPig-input.txt';" +
"store a into 'testSFPig-output.txt';";
pigServer.setBatchOn();
Util.registerMultiLineQuery(pigServer, query);
pigServer.executeBatch();
LoadFunc lfunc = new ReadToEndLoader(new PigStorage(), ConfigurationUtil.
toConfiguration(cluster.getProperties()), "testSFPig-output.txt", 0);
Tuple f2 = lfunc.getNext();
assertEquals(f1, f2);
Util.deleteFile(cluster, "testSFPig-input.txt");
Util.deleteFile(cluster, "testSFPig-output.txt");
}