public void testWatchedJob_prepareRetryJob_singleItem() {
final JobDispatcher dispatcher = new JobDispatcher();
final FunctionBlacklistMaintainer blacklist = Mockito.mock(FunctionBlacklistMaintainer.class);
dispatcher.setFunctionBlacklistMaintainer(blacklist);
final CalculationJob job = new CalculationJob(createJobSpecification(), 0, VersionCorrection.LATEST, null, Arrays.asList(JOB_ITEM_A), CacheSelectHint.allShared());
final JobResultReceiver receiver = Mockito.mock(JobResultReceiver.class);
final StandardJob standard = new StandardJob(dispatcher, job, receiver);
final WatchedJob watched = new WatchedJob.Whole(standard, job, receiver);
watched.prepareRetryJob(null);
Mockito.verify(blacklist).failedJobItem(JOB_ITEM_A);
}