// GIVEN: a disabled project
final AbstractProject project = mock(AbstractProject.class);
when(project.isDisabled()).thenReturn(true);
JobProvider jobProvider = new JobProvider() {
public List<Job> getAllJobs() {
return Collections.<Job>singletonList(project);
}
};