// Remove any adaptor left over from previous run
// sleep for some time to make sure we don't get chunk from existing streams
Thread.sleep(5000);
assertEquals(0, agent.adaptorCount());
String adaptorId = agent
.processAddCommand("add org.apache.hadoop.chukwa.datacollection.adaptor.filetailer.CharFileTailingAdaptorUTF8"
+ " lines " + testFile + " 0");
assertNotNull(adaptorId);
assertEquals(1, agent.adaptorCount());