private JobService jobService = EasyMock.createMock(JobService.class);
@Before
public void setUp() throws Exception {
loader.setJobLoader(new DefaultJobLoader(new MapJobRegistry()));
loader.setJobService(jobService);
expect(jobService.countJobExecutionsForJob("job")).andReturn(2);
expect(jobService.isIncrementable("job")).andReturn(true);
expect(jobService.isLaunchable("job")).andReturn(true);
replay(jobService);