### Question:
ProjectCollectionTemplateServiceImpl implements ProjectCollectionTemplateService { public Boolean isAvailable(Integer roleId, String name, Integer type) { if (type == 1) { if (0 != inspectionTemplateMapper.getByRIdAndName(roleId, name).size()) { return false; } } else if (type == 2) { if (0 != examinationTemplateMapper.getByRIdAndName(roleId, name).size()) { return false; } } else if (type == 3) { if (0 != treatmentTemplateMapper.getByRIdAndName(roleId, name).size()) { return false; } } return true; }  @Override CommonResult insertCollectionTemplate(CollectionTemplateParam collectionTemplateParam); CommonResult saveItems(CollectionTemplateParam collectionTemplateParam,
                                  ProjectTemplateParam projectTemplateParam, String item); Boolean isAvailable(Integer roleId, String name, Integer type); @Override CommonResult listCollectionTemplate(Integer roleId, Integer type); CommonResult deleteCollectionTemplate(CollectionTemplateParam collectionTemplateParam); @Override CommonResult modifyCollectionTemplate(CollectionTemplateParam collectionTemplateParam);  }### Answer:
@Test public void testIsAvailable() throws Exception { }