MockAgentConfiguration configuration = new MockAgentConfiguration("localhost");
AgentProcessManager processManager = new AgentProcessManager(new AgentProcessMap(AgentProcessMap.buildDefaultMap()), configuration, nodeStatus);
try
{
AgentTask agentTask = new AgentTask(configuration, processManager, nodeStatus, storage);
agentTask.execute();
String value = storage.getData().values().iterator().next();
JSONObject obj = new JSONObject(value);
JSONObject info = obj.getJSONObject("info");
Assert.assertNotNull(info);