*
*/
public void testTwoAgentsConfiguration() throws Exception {
// agent factory should be up
ManagementAgentFactory agentFactory = getService(ManagementAgentFactory.class);
Assert.assertNotNull(agentFactory);
assertAgentDown("007");
assertAgentDown("009");
// configure an agent
Map<String, String> config = new Hashtable<String, String>();
config.put("verbose", "true");
config.put("agents", "007,009");
config.put("serverurl", "http://localhost:8080");
config.put("logstores", "auditlog");
agentFactory.updated(config);
assertAgentUp("007");
assertAgentUp("009");
config = new Hashtable<String, String>();
config.put("verbose", "true");
agentFactory.updated(config);
assertAgentDown("007");
assertAgentDown("009");
}