### Question:
JobMacroManager extends AbstractJobEntityManager<JobMacro> { @Override protected Job findDependentJob(Spawn spawn, String entityKey) { for (Job job : spawn.listJobs()) { String rawconf = spawn.getJobConfig(job.getId()); if (rawconf != null && rawconf.contains("%{" + entityKey + "}%")) { return job; } } return null; } JobMacroManager(Spawn spawn);   }### Answer:
@Test public void findJobUsingEntity_Found() throws Exception { assertEquals(job, manager.findDependentJob(spawn, "my-macro")); }
@Test public void findJobUsingEntity_NotFound() throws Exception { assertNull(manager.findDependentJob(spawn, "her-macro")); }