conn.start();
String name = agent
.processAddCommand("ADD org.apache.hadoop.chukwa.datacollection.adaptor.ChukwaTestAdaptor chukwaTestAdaptorType 114027");
assertTrue(name != null);
Adaptor adaptor = agent.getAdaptor(name);
ChukwaTestAdaptor chukwaTestAdaptor = (ChukwaTestAdaptor) adaptor;
assertTrue("error in type",
"chukwaTestAdaptorType".intern() == chukwaTestAdaptor.getType()
.intern());
assertTrue("error in param", "".intern() == chukwaTestAdaptor.getParams()
.intern());
assertTrue("error in startOffset", 114027l == chukwaTestAdaptor
.getStartOffset());
agent.stopAdaptor(name, false);
agent.shutdown();
Thread.sleep(2000);
} catch (InterruptedException e) {