### Question:
DisableJobService { public void add(final String jobName) { if (regCenter.getNumChildren(DisableJobNode.ROOT) > env.getFrameworkConfiguration().getJobStateQueueSize()) { log.warn("Cannot add disable job, caused by read state queue size is larger than {}.", env.getFrameworkConfiguration().getJobStateQueueSize()); return; } String disableJobNodePath = DisableJobNode.getDisableJobNodePath(jobName); if (!regCenter.isExisted(disableJobNodePath)) { regCenter.persist(disableJobNodePath, jobName); } } DisableJobService(final CoordinatorRegistryCenter regCenter); void add(final String jobName); void remove(final String jobName); boolean isDisabled(final String jobName);  }### Answer:
@Test public void assertAdd() { disableJobService.add("test_job"); Mockito.verify(regCenter).isExisted("/state/disable/job/test_job"); Mockito.verify(regCenter).persist("/state/disable/job/test_job", "test_job"); }
@Test public void assertAdd() { disableJobService.add("test_job"); verify(regCenter).isExisted("/state/disable/job/test_job"); verify(regCenter).persist("/state/disable/job/test_job", "test_job"); }