  @Test
  public void getJobsAwaitingLibraryCreation(){

	  
	  List<Job> JobsAwaitingLibraryCreation = new ArrayList<Job>();
	  Job job = new Job();
	  job.setJobId(1);
	  
	  Sample sample = new Sample();
	  sample.setSampleId(1);
	  JobSample js = new JobSample();
	  js.setJobSampleId(1);
	  js.setJob(job);
	  js.setSample(sample);
	  List<JobSample> jobSamples = new ArrayList<JobSample>();
	  jobSamples.add(js);
	  job.setJobSample(jobSamples);
	  
	  List<Job> activeJobs = new ArrayList<Job>();
	  activeJobs.add(job);
	  
	  expect(mockJobServiceImpl.getActiveJobs()).andReturn(activeJobs);
      replay(mockJobServiceImpl);

	  mockJobServiceImpl.setSampleService(mockSampleService);
      
      expect(mockSampleService.isSampleAwaitingLibraryCreation(sample)).andReturn(true);
      replay(mockSampleService);
		
      JobsAwaitingLibraryCreation.add(job);
      Assert.assertEquals(mockJobServiceImpl.getJobsAwaitingLibraryCreation(), JobsAwaitingLibraryCreation);
      
      verify(mockJobServiceImpl);
      verify(mockSampleService);
	  
	  
  }