CronJobManagerImpl implements CronJobManager { @Override public void startJobNow(final IJobKey jobKey) throws CronException { requireNonNull(jobKey); storage.read(storeProvider -> { checkCronExists(jobKey, storeProvider.getCronJobStore()); triggerJob(jobKey); return null; }); } @Inject  CronJobManagerImpl(Storage storage, Scheduler scheduler, TimeZone timeZone); @Override void startJobNow(final IJobKey jobKey); @Override void updateJob(final SanitizedCronJob config); @Override void createJob(final SanitizedCronJob cronJob); @Override boolean deleteJob(final IJobKey jobKey); @Override Map<IJobKey, CrontabEntry> getScheduledJobs();  }
@Test(expected = CronException.class) public void testStartJobNowNonexistent() throws Exception { control.replay(); cronJobManager.startJobNow(QuartzTestUtil.AURORA_JOB_KEY); }