PCollection<T> rows = pipeline.read(source);
List<T> result = Lists.newArrayList(rows.materialize());
assertEquals(Lists.newArrayList(expected), result);
OrcFileTarget target = new OrcFileTarget(outputPath);
pipeline.write(rows, target);
assertTrue(pipeline.done().succeeded());
OrcFileReaderFactory<T> reader = new OrcFileReaderFactory<T>(ptype);