### Question:
ProjectCollectionManagementServiceImpl implements ProjectCollectionManagementService { public CommonResult chooseByType(CollectionParam collectionParam, int operation){ Integer collectionType = collectionParam.getCollectionType(); if (collectionType == null) return CommonResult.fail(ResultCode.E_801); else if (collectionType == 1) return saveInspection(collectionParam, operation); else if (collectionType == 2) return saveExamination(collectionParam, operation); else if (collectionType == 3) return saveTreatment(collectionParam, operation); else return CommonResult.fail(ResultCode.E_801); }  @Override CommonResult listCollections(Integer caseId, Integer type); @Override CommonResult applyNewCollection(Integer collectionType); @Override CommonResult savePresentCollection(CollectionParam collectionParam); @Override CommonResult submitPresentCollection(CollectionParam collectionParam); CommonResult chooseByType(CollectionParam collectionParam, int operation); CommonResult saveInspection(CollectionParam collectionParam, int operation); CommonResult saveExamination(CollectionParam collectionParam, int operation); CommonResult saveTreatment(CollectionParam collectionParam, int operation); int insertInspectionProject(Integer collectionId, Integer projectId, ItemParam itemParam); int insertExaminationProject(Integer collectionId, Integer projectId, ItemParam itemParam); CommonResult insertTransactionLog(CollectionParam collectionParam, ProjectParam projectParam,
                                             ItemParam itemParam, Integer creatorRoleId); CommonResult cancelSubmittedCollection(Integer collectionId, Integer type); CommonResult deleteCollection(Integer collectionId, Integer type); CommonResult getProjectResult(ProjectParam projectParam);  }### Answer:
@Test public void testChooseByType() throws Exception { }