### Question:
ProjectCollectionManagementServiceImpl implements ProjectCollectionManagementService { public CommonResult deleteCollection(Integer collectionId, Integer type){ if(type == 1) { inspectionMapper.deleteByCollectionId(collectionId); inspectionProjectMapper.deleteItemsByCollectionId(collectionId); } else if(type == 2){ examinationMapper.deleteByCollectionId(collectionId); examinationProjectMapper.deleteItemsByCollectionId(collectionId); } else if(type == 3){ treatmentMapper.deleteByCollectionId(collectionId); } else if(type == 4){ recipeMapper.deleteById(collectionId); } else return CommonResult.fail(ResultCode.E_801); return CommonResult.success(null); }  @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 testDeleteCollection() throws Exception { }