### Question:
TransientProducerScheduler { synchronized void deregister(final CloudJobConfiguration jobConfig) { repository.remove(jobConfig.getJobName()); String cron = jobConfig.getTypeConfig().getCoreConfig().getCron(); if (!repository.containsKey(buildJobKey(cron))) { try { scheduler.unscheduleJob(TriggerKey.triggerKey(cron)); } catch (final SchedulerException ex) { throw new JobSystemException(ex); } } } TransientProducerScheduler(final ReadyService readyService);   }### Answer:
@Test public void assertDeregister() throws SchedulerException { transientProducerScheduler.deregister(jobConfig); verify(scheduler).unscheduleJob(TriggerKey.triggerKey(jobConfig.getTypeConfig().getCoreConfig().getCron())); }