String out = tempDir.getFileName("out");
SparkPipeline pipeline = new SparkPipeline("local", "skipptypes");
PCollection<String> shakes = pipeline.read(From.textFile(tempDir.copyResourceFileName("shakes.txt")));
PTable<String, Long> wcnt = shakes.count();
wcnt.write(new MySeqFileTableSourceTarget(out, ptt));
pipeline.run();
PTable<Text, LongWritable> wcntIn = pipeline.read(new MySeqFileTableSourceTarget(out, ptt));
assertEquals(new LongWritable(1L), wcntIn.materialize().iterator().next().second());
pipeline.done();
}