JobMetaService { public void disable(final String jobType, final String comment) { jobMetaRepository.disable(jobType, comment); } @Autowired  JobMetaService(final JobMetaRepository jobMetaRepository,
                          final JobMutexGroups mutexGroups); void aquireRunLock(final String jobId, final String jobType); void releaseRunLock(final String jobType); Set<RunningJob> runningJobs(); void disable(final String jobType, final String comment); void enable(final String jobType); JobMeta getJobMeta(final String jobType);  }
@Test public void shouldDisableJobType() throws Exception { jobMetaService.disable("jobType", null); verify(jobMetaRepository).disable("jobType", null); }
@Test public void shouldDisableJobTypeWithComment() throws Exception { jobMetaService.disable("jobType", "some comment"); verify(jobMetaRepository).disable("jobType", "some comment"); }