public void testLoadFromBindTo() throws Exception {
String filename = TestHelper.createTempFile(data, " ");
DummyRegExLoader dummyRegExLoader = new DummyRegExLoader();
PigContext pigContext = new PigContext(ExecType.LOCAL, new Properties());
InputStream inputStream = FileLocalizer.open(filename, pigContext);
dummyRegExLoader.bindTo(filename, new BufferedPositionedInputStream(inputStream), 0, Long.MAX_VALUE);
ArrayList<String[]> expected = TestHelper.getExpected(data, pattern);
int tupleCount = 0;
while (true) {