public void testStartAfterOffset() throws IOException, InterruptedException, ChukwaAgent.AlreadyRunningException {
ChukwaAgent agent = new ChukwaAgent();
File testFile = makeTestFile();
int startOffset = 50;
agent.processCommand("add org.apache.hadoop.chukwa.datacollection.adaptor.filetailer.CharFileTailingAdaptorUTF8 " +
"lines "+ startOffset+ " " + testFile + " " + (startOffset + 29) );
assertTrue(agent.adaptorCount() == 1);
System.out.println("getting a chunk...");
Chunk c = chunks.waitForAChunk();
System.out.println("got chunk");