### Question:
ProcessingJobDaoImpl implements ProcessingJobDao { @Override public WriteResult delete(String id) { return datastore.delete(ProcessingJob.class, id); } ProcessingJobDaoImpl(Datastore datastore); @Override Long getCount(); @Override boolean create(ProcessingJob processingJob, WriteConcern writeConcern); @Override com.google.code.morphia.Key<ProcessingJob> createOrModify(
			ProcessingJob processingJobs, WriteConcern writeConcern); @Override Iterable<com.google.code.morphia.Key<ProcessingJob>> createOrModify(
			Collection<ProcessingJob> processingJobs, WriteConcern writeConcern); @Override ProcessingJob read(String id); @Override boolean update(ProcessingJob processingJob, WriteConcern writeConcern); @Override WriteResult delete(String id); @Override List<ProcessingJob> getJobsWithState(JobState jobState, Page page); @Override void modifyStateOfJobsWithIds(JobState newJobState,
			final List<String> jobIds); @Override void modifyStateOfJobs(JobState oldJobState, JobState newJobState); Map<String, Integer> getIpDistribution(); @Override List<ProcessingJob> getDiffusedJobsWithState(
			JobPriority jobPriority, JobState jobState, Page page,
			Map<String, Integer> ipDistribution); @Override List<ProcessingJob> deactivateJobs(final ReferenceOwner owner,
			final WriteConcern writeConcern); @Override PagedElements<ProcessingJob> findJobsByCollectionIdAndState(
			final Set<String> collectionIds, final Set<JobState> states,
			final Page pageConfiguration); @Override Map<String, JobStatistics> findJobsByCollectionId(String collectionId);  }### Answer:
@Test public void testDelete() throws Exception { final ProcessingJob processingJob = new ProcessingJob(1, new Date(), new ReferenceOwner("1", "1", "1"), null, JobState.READY, null, "", null); processingJobDao.create(processingJob, WriteConcern.NONE); ProcessingJob processingJobFromRead = processingJobDao.read(processingJob.getId()); assertNotNull(processingJobFromRead); assertTrue(processingJobDao.delete(processingJob.getId()).getN() == 1); processingJobFromRead = processingJobDao.read(processingJob.getId()); assertNull(processingJobFromRead); assertFalse(processingJobDao.delete(processingJob.getId()).getN() == 1); }