ScheduleManagerImpl implements ScheduleManager { @Override public void addAgent(AgentMngrAPIResponse agent) { JobRequestData data = elements.get(agent.getJobId()); if (data != null) { logger.debug("Received agent job Id " + agent.getJobId()); data.addAgent(agent); } else { logger.warn("Received agent for unknown job | Id sent is " + agent.getJobId()); } }  @Override void addJob(AgentMngrAPIRequest request); @Override void addAgent(AgentMngrAPIResponse agent); @Override JobRequestData getJob(String jobId);  }
@Test public void testAddAgent_1() throws Exception { ScheduleManagerImpl fixture = new ScheduleManagerImpl(); AgentMngrAPIResponse agent = new AgentMngrAPIResponse(); agent.setJobId(""); fixture.addAgent(agent); }
@Test public void testAddAgent_2() throws Exception { ScheduleManagerImpl fixture = new ScheduleManagerImpl(); AgentMngrAPIResponse agent = new AgentMngrAPIResponse(); agent.setJobId(""); fixture.addAgent(agent); }