### Question:
PreliminaryCaseServiceImpl implements PreliminaryCaseService { public CommonResult finalDiagnose(PatientCaseParam patientCaseParam){ int count; Integer caseId = patientCaseParam.getCaseId(); diagnoseMapper.deleteFinalDiagnose(caseId); Integer diagnoseType = patientCaseParam.getDiagnoseType(); List<DiagnoseParam> diagnoseParams; if(diagnoseType == 0) diagnoseParams = patientCaseParam.getFinalTraditionalDiagnose(); else if (diagnoseType == 1) diagnoseParams = patientCaseParam.getFinalModernDiagnose(); else return CommonResult.fail(ResultCode.E_800); for(DiagnoseParam diagnoseParam : diagnoseParams) { Diagnose diagnose = new Diagnose(); diagnose.setCaseId(caseId); diagnose.setIsFirstDiagnosed(false); diagnose.setDiseaseId(diagnoseParam.getIcdCode()); diagnose.setStartTime(Date.valueOf(diagnoseParam.getStartTime())); diagnose.setDiseaseId(diagnose.getDiseaseId()); count = diagnoseMapper.insertSelective(diagnose); if (count <= 0) return CommonResult.fail(ResultCode.E_802); } count = patientCaseMapper.updatePatientCaseStatus(caseId, 4); if (count <= 0) return CommonResult.fail(ResultCode.E_802); return CommonResult.success(count); }  @Override CommonResult listPatients(Integer doctorRoleId); @Override CommonResult getPatientCaseInfo(Integer doctorRoleId, Integer caseId); CommonResult finalDiagnose(PatientCaseParam patientCaseParam); @Override CommonResult savePresentPatientCase(PatientCaseParam patientCaseParam); @Override CommonResult submitPresentPatientCase(PatientCaseParam patientCaseParam); CommonResult savePatientCase(PatientCaseParam patientCaseParam, int status, Boolean isFirstDiagnosed); CommonResult clearPatientCase(Integer caseId); CommonResult listFinalDiagnose(Integer caseId); @Override CommonResult finishDiagnose(Integer caseId); int getAgeByBirth(Date birthDay);  }### Answer:
@Test public void testFinalDiagnose() throws Exception { }