### Question:
DocumentNominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<DocumentNominalLabel, Long> implements DocumentNominalLabelResourceFacade { @Override public List<DocumentNominalLabelDTO> findByCriteria(String columnName, Object value) throws PropertyNotSetException { List<DocumentNominalLabel> list = getAllByCriteria(Restrictions.eq(columnName,value)); List<DocumentNominalLabelDTO> dtoList = new ArrayList<DocumentNominalLabelDTO>(); if (list != null && !list.isEmpty()) { for (DocumentNominalLabel c: list) { dtoList.add(new DocumentNominalLabelDTO(c)); } } return dtoList; } 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 testFindByCriteria() { try { String columnName = "id.documentId"; Long value = documentNominalLabel.getIdDTO().getDocumentId(); List<DocumentNominalLabelDTO> result = documentNominalLabelResourceFacadeImp .findByCriteria(columnName, value); assertNotNull(result); assertEquals(value, result.get(0).getIdDTO().getDocumentId()); } catch (PropertyNotSetException ex) { logger.error("PropertyNotSetException while finding document nominal label by criteria "+ex.getMessage()); fail("findByCriteria failed"); } }