### Question:
MigratorHarvesterDao { public void saveProcessingJobTuples (List<ProcessingJobTuple> processingJobTuples, String migratingBatchId) throws InterruptedException, MalformedURLException, TimeoutException, ExecutionException, UnknownHostException { harvesterClient.createOrModifyProcessingJobTuples(processingJobTuples); } MigratorHarvesterDao(MongoConfig mongoConfig); void saveProcessingJobTuples(List<ProcessingJobTuple> processingJobTuples, String migratingBatchId);  }### Answer:
@Test public void test_ProcessJobs_EmptyList() throws InterruptedException, MalformedURLException, TimeoutException, ExecutionException, UnknownHostException { harvesterDao.saveProcessingJobTuples(Collections.EMPTY_LIST, migrationBatchId); assertEquals(0, dataStore.getCount(ProcessingJob.class)); }
@Test public void test_ProcessJobs_OneElement() throws MalformedURLException, UnknownHostException, InterruptedException, ExecutionException, TimeoutException { final List<ProcessingJobTuple> jobs = ProcessingJobBuilder.edmObjectUrlJobs("http: owner, JobPriority.NORMAL.getPriority(), falseOption); assertEquals(1, jobs.size()); final ProcessingJobTuple job = jobs.get(0); harvesterDao.saveProcessingJobTuples(jobs, migrationBatchId); final Query<ProcessingJob> query = dataStore.createQuery(ProcessingJob.class); query.filter("_id", job.getProcessingJob().getId()); assertEquals(0, dataStore.getCount(query)); final Query<SourceDocumentReference> sourceDocumentReferenceQuery = dataStore.createQuery(SourceDocumentReference.class); sourceDocumentReferenceQuery.filter("_id", job.getSourceDocumentReference().getId()); assertEquals(1, dataStore.getCount(sourceDocumentReferenceQuery)); }