@Test
public void testTailSource() throws IOException, FlumeSpecException,
InterruptedException {
File f = File.createTempFile("temp", ".tmp");
f.deleteOnExit();
final CompositeSink snk = new CompositeSink(new ReportTestingContext(),
"{ delay(50) => counter(\"count\") }");
final EventSource src = TailSource.builder().build(f.getAbsolutePath());
final CountDownLatch done = new CountDownLatch(1);
final int count = 30;
runDriver(src, snk, done, count);