JobManager implements Serializable { public FutureTask<AgentData> sendCommand(String instanceId, WatsAgentCommand cmd) { AgentData agent = getAgentData(instanceId); if (agent != null) { return sendCommand(agent, cmd, false); } return null; }  synchronized void startJob(int id); AgentTestStartData registerAgentForJob(AgentData agent); FutureTask<AgentData> sendCommand(String instanceId, WatsAgentCommand cmd);  }
@Test public void testSendCommand_1() throws Exception { JobManager fixture = new JobManager(); String instanceId = ""; WatsAgentCommand cmd = WatsAgentCommand.kill; FutureTask<AgentData> result = fixture.sendCommand(instanceId, cmd); assertEquals(null, result); }
@Test public void testSendCommand_2() throws Exception { JobManager fixture = new JobManager(); String instanceId = ""; WatsAgentCommand cmd = WatsAgentCommand.kill; FutureTask<AgentData> result = fixture.sendCommand(instanceId, cmd); assertEquals(null, result); }