JAVA
为函数--- 要求: 1、覆盖所有 public 方法的主要场景(正常、边界、异常) 2、使用 Mockito 模拟外部依赖 3、测试方法命名清晰,采用 given_when_then 风格 4、代码简洁,无编译错误,可直接运行