### Question:
CategoryServiceImpl implements CategoryService { @Override @LogMethod("列出分类") public List<Category> listCategory(String userId) { return categoryDAO.getByUserId(userId); } @Autowired  CategoryServiceImpl(CategoryDAO categoryDAO); @Override void updateCategory(String categoryId, String userId, String name); @Override void removeCategory(String categoryId); @Override @LogMethod("检查分类是否存在") boolean exists(String userId, String name); @Override @LogMethod("列出分类") List<Category> listCategory(String userId); @Override @LogMethod("添加收益分类") Category appendCategory(String userId, String name);  }### Answer:
@Test public void listCategory() { List<Category> categories = categoryService.listCategory(getUser().getId()); Assert.assertNotNull(categories); System.out.println(categories); }