public void testMemPipelineFileWriter() throws Exception {
File tmpDir = baseTmpDir.getFile("mempipe");
Pipeline p = MemPipeline.getInstance();
PCollection<String> lines = MemPipeline.collectionOf("hello", "world");
p.writeTextFile(lines, tmpDir.toString());
p.done();
assertTrue(tmpDir.exists());
File[] files = tmpDir.listFiles();
assertTrue(files != null && files.length > 0);
for (File f : files) {
if (!f.getName().startsWith(".")) {