### Question:
TaskAssignmentResourceFacadeImp extends CoreDBServiceFacadeImp<TaskAssignment, Long> implements TaskAssignmentResourceFacade { @Override public TaskAssignmentDTO findTaskAssignment(Long documentID, Long userID) { Map<String, Long> attMap = new HashMap<String, Long>(); attMap.put("id.documentId", documentID); attMap.put("id.userId", userID); try { TaskAssignment t = getByCriteria(Restrictions.allEq(attMap)); return t != null ? new TaskAssignmentDTO(t) : null; } catch (Exception e) { logger.error("Error in find operation: documentID = " + documentID + ", userID = " + userID); return null; } } TaskAssignmentResourceFacadeImp(); @Override int insertTaskAssignment(List<DocumentDTO> taskList, Long userID); @Override int insertOneTaskAssignment(Long documentID, Long userID); @Override int undoTaskAssignment(List<DocumentDTO> taskList, Long userID); @Override int undoTaskAssignment(Map<Long, Long> taskMap); @Override int undoTaskAssignment(Long documentID, Long userID); @Override void undoTaskAssignmentByTimer(); @Override TaskAssignmentDTO findTaskAssignment(Long documentID, Long userID); @Override List<TaskAssignmentDTO> findTaskAssignmentByID(Long documentID); @Override Integer getPendingTaskCount(Long userID);  }### Answer:
@Test public void testFindTaskAssignment() { taskAssignment = taskAssignmentResourceFacadeImp.findTaskAssignment(documentDTO.getDocumentID(), user.getUserID()); assertEquals(documentDTO.getDocumentID(), taskAssignment.getDocumentID()); }