public void testExistingAddFiles() throws IOException, InterruptedException {
File tmpdir = FileUtil.mktempdir();
TailDirSource src = new TailDirSource(tmpdir, ".*");
AccumulatorSink cnt = new AccumulatorSink("tailcount");
src.open();
cnt.open();
DirectDriver drv = new DirectDriver(src, cnt);
genFiles(tmpdir, "foo", 10, 100);
drv.start();