MockStorage storage = new MockStorage();
storage.setValue(configuration, ProcessTask.ROW_KEY, "localhost", commandTab.toString());
MockNodeStatus nodeStatus = new MockNodeStatus();
AgentProcessManager processManager = new AgentProcessManager(new AgentProcessMap(AgentProcessMap.buildDefaultMap()), configuration, nodeStatus);
ProcessTask processTask = new ProcessTask(configuration, processManager, storage);
processTask.execute();
Assert.assertTrue(processManager.closeAndWaitForCompletion(5, TimeUnit.SECONDS));
Assert.assertEquals(nodeStatus.getOperations().size(), 1);