### Question:
JobCommandManager extends AbstractJobEntityManager<JobCommand> { @Override protected Job findDependentJob(Spawn spawn, String entityKey) { for (Job job : spawn.listJobs()) { if (job.getCommand() != null && job.getCommand().equals(entityKey)) { return job; } } return null; } JobCommandManager(Spawn spawn);   }### Answer:
@Test public void findDependentJob_Found() throws Exception { assertEquals(job, manager.findDependentJob(spawn, "my-command")); }
@Test public void findDependentJob_NotFound() throws Exception { assertNull(manager.findDependentJob(spawn, "her-command")); }