### Question:
DocumentNominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<DocumentNominalLabel, Long> implements DocumentNominalLabelResourceFacade { @Override public DocumentNominalLabelDTO findDocumentByPrimaryKey(DocumentNominalLabelIdDTO id) throws PropertyNotSetException { List<DocumentNominalLabelDTO> docList = findByCriteria("id", id.toEntity()); return (docList != null && !docList.isEmpty()) ? docList.get(0) : null; } protected  DocumentNominalLabelResourceFacadeImp(); @Override void saveDocumentNominalLabel(DocumentNominalLabelDTO documentNominalLabel); @Override boolean foundDuplicate(DocumentNominalLabelDTO documentNominalLabel); @Override DocumentNominalLabelDTO addDocument(DocumentNominalLabelDTO doc); @Override DocumentNominalLabelDTO editDocument(DocumentNominalLabelDTO doc); @Override Integer deleteDocument(DocumentNominalLabelDTO doc); @Override List<DocumentNominalLabelDTO> findByCriteria(String columnName, Object value); @Override DocumentNominalLabelDTO findDocumentByPrimaryKey(DocumentNominalLabelIdDTO id); @Override boolean isDocumentExists(DocumentNominalLabelIdDTO id); @Override boolean isDocumentExists(Long id); @Override List<DocumentNominalLabelDTO> getAllDocuments(); @Override DocumentNominalLabelDTO findLabeledDocumentByID(Long id); @Override List<DocumentNominalLabelDTO> findLabeledDocumentListByID(Long id); @Override List<DocumentNominalLabelDTO> getLabeledDocumentCollectionForNominalLabel(Integer nominalLabelID); @Override void deleteDocumentNominalLabelByNominalLabel(Long nominalLabelID);  }### Answer:
@Test public void testFindDocumentByPrimaryKey() { try { DocumentNominalLabelDTO result = documentNominalLabelResourceFacadeImp .findDocumentByPrimaryKey(documentNominalLabel.getIdDTO()); assertEquals(documentNominalLabel.getIdDTO().getDocumentId(), result.getDocumentDTO().getDocumentID()); } catch (PropertyNotSetException ex) { logger.error("PropertyNotSetException while finding document nominal label by primary key "+ex.getMessage()); fail("findDocumentByPrimaryKey failed"); } }