public TestSubagent(Address masterAddress, Address localAddress) {
this.masterAddress = masterAddress;
this.localAddress = localAddress;
this.dispatcher = new AgentXMessageDispatcherImpl();
this.agentX = new AgentX(dispatcher);
server = new DefaultMOServer();
server.addContext(new OctetString());
this.subagent =
new AgentXSubagent(agentX, SUBAGENT_ID,
new OctetString("AgentX4J Test agent"));
this.subagent.setThreadPool(ThreadPool.create("AgentXSubAgent", 3));