### Question:
PrintJobOperations { public DataResponse<BasicPrintJob> getDeletablePrintJobs() { DataResponse<BasicPrintJob> response = new DataResponse<BasicPrintJob>("Could not get deletable print jobs"); List<Status> deletableStatuses = Arrays.asList(Status.PENDING_REVIEW, Status.FAILED, Status.PENDING_CUSTOMER_RESPONSE, Status.REJECTED, Status.COMPLETED, Status.ARCHIVED); List<PrintJob> printJobs = printJobRepo.findByStatusIn(deletableStatuses); List<BasicPrintJob> basicPrintJobs = new BasicPrintJob().ConvertPrintJobs(printJobs); response.setSuccess(true); response.setMessage("Successfully returned deletable print jobs"); response.setData(basicPrintJobs); response.setHttpStatus(HttpStatus.ACCEPTED); return response; } PrintJobOperations(FileService fileService, PrintJobRepo printJobRepo,
                              ColorTypeRepo colorTypeRepo, CustomerInfoRepo customerInfoRepo,
                              EmployeeRepo employeeRepo, EmailHashUtil emailHashUtil, QueueRepo queueRepo); DataResponse<BasicPrintJob> newPrintJob(PrintJobNewRequest printJobNewRequest, Principal principal); DataResponse<BasicPrintJob> updateModel(Integer printId, PrintModelUpdateRequest model); GenericResponse deleteModel(Integer printId); GenericResponse updatePrintJobStatus(Integer printId, PrintJobUpdateRequest dto); GenericResponse deletePrintJob(PrintJobDeleteRequest dto); DataResponse<BasicPrintJob> getAllPrintJobs(String status); DataResponse<BasicPrintJob> getDeletablePrintJobs(); DataResponse<BasicPrintJob> updatePrintJobProps(Integer printJobId, UpdatePrintJobPropertiesRequest request); DataResponse<BasicPrintJob> getPrintJobById(Integer printJobId);  }### Answer:
@Test public void getDeletablePrintJobs(){ PrintJob printJob = new PrintJob(); printJob.setColorType(new ColorType(1, "Red")); printJob.setComments("comments"); printJob.setCreatedAt(LocalDateTime.now()); printJob.setQueueId(new Queue(printJob, new Long(1))); printJob.setStatus(Status.PENDING_REVIEW); printJob.setEmployee(new Employee()); printJob.setId(1); List<PrintJob> printJobs = new ArrayList<PrintJob>(); printJobs.add(printJob); List<Status> deletableStatuses = Arrays.asList(Status.PENDING_REVIEW, Status.FAILED, Status.PENDING_CUSTOMER_RESPONSE, Status.REJECTED, Status.COMPLETED, Status.ARCHIVED); when(printJobRepo.findByStatusIn(deletableStatuses)).thenReturn(printJobs); DataResponse<BasicPrintJob> result = operations.getDeletablePrintJobs(); Assert.assertEquals(result.getData().get(0).getId(), printJob.getId()); }