### Question:
DiagnosisServiceImpl extends BaseOpenmrsService implements DiagnosisService { @Override @Transactional(readOnly = true) public Diagnosis getDiagnosis(Integer diagnosisId) { return diagnosisDAO.getDiagnosisById(diagnosisId); }  @Override Diagnosis save(Diagnosis diagnosis); @Override Diagnosis voidDiagnosis(Diagnosis diagnosis, String voidReason); @Override Diagnosis getDiagnosisByUuid(String uuid); @Override @Transactional(readOnly = true) List<Diagnosis> getDiagnoses(Patient patient, Date fromDate); @Override @Transactional(readOnly = true) List<Diagnosis> getPrimaryDiagnoses(Encounter encounter); @Override @Transactional(readOnly = true) List<Diagnosis> getUniqueDiagnoses(Patient patient, Date fromDate); @Override @Transactional(readOnly = true) Diagnosis getDiagnosis(Integer diagnosisId); @Override Diagnosis unvoidDiagnosis(Diagnosis diagnosis); @Override void purgeDiagnosis(Diagnosis diagnosis); DiagnosisDAO getDiagnosisDAO(); void setDiagnosisDAO(DiagnosisDAO diagnosisDAO);  }### Answer:
@Test public void getDiagnosisById_shouldFindDiagnosifGivenId() { Integer diagnosisId = 1; Diagnosis diagnosis = diagnosisService.getDiagnosis(diagnosisId); Assert.assertEquals("68802cce-6880-17e4-6880-a68804d22fb7", diagnosis.getUuid()); Assert.assertEquals(ConditionVerificationStatus.CONFIRMED, diagnosis.getCertainty()); Assert.assertEquals(diagnosisId, diagnosis.getDiagnosisId()); }