### Question:
CategoryServiceImpl implements CategoryService { public void updateCategory(Category category) { categoryMapper.updateCategory(category); }  @Transactional(propagation=Propagation.REQUIRED,readOnly=true) List<Category> listAllCategory(); Category selectCategoryById(int id); void saveCategory(Category category); void updateCategory(Category category); Category findCategoryById(int id);  }### Answer:
@Test public void updateCategory(){ Category category = categoryService.findCategoryById(4); category.setName("大家电"); categoryService.updateCategory(category); category = categoryService.findCategoryById(5); category.setName("小家电"); categoryService.updateCategory(category); }