File testFile = makeTestFile("testDA", 50, new File(System.getProperty("test.build.data", "/tmp")));
long len = testFile.length();
System.out.println("wrote data to " + testFile);
AdaptorResetThread restart = new AdaptorResetThread(conf, agent);
//start timeout thread
agent.processAddCommand("add fta = "+ FileTailingAdaptor.class.getCanonicalName()
+ " testdata " + testFile.getCanonicalPath() + " 0" );
assertEquals(1, agent.adaptorCount());
Chunk c1 = chunks.waitForAChunk();