### Question:
AnimalPutCmdExe implements ExecutorI<SingleResponse<Refrigerator>, AnimalPutCommand> { @Override public SingleResponse<Refrigerator> execute(AnimalPutCommand cmd) { Refrigerator refrigerator = refrigeratorMapper.findSpace(); RefrigeratorProfile refrigeratorProfile = new RefrigeratorProfile(refrigerator); refrigeratorProfile.checkRefrigerator(); Refrigerator newRefrigerator = refrigeratorProfile.putAnimal(cmd.getName()); refrigeratorMapper.update(newRefrigerator); ServiceEventQueue.push(AnimalSaveEventConvertor.parser(newRefrigerator)); return SingleResponse.of(newRefrigerator); }  @Override SingleResponse<Refrigerator> execute(AnimalPutCommand cmd);  }### Answer:
@Test void executeFail() { try { AnimalPutCommand animalPutCommand = new AnimalPutCommand("大象"); Response response = animalPutCmdExe.execute(animalPutCommand); }catch (Exception e){ assertThrows(RuntimeException.class,()->{ throw e; }); } }
@Test void executeSuccess(){ mock(); AnimalPutCommand animalPutCommand = new AnimalPutCommand("大象"); Response response = animalPutCmdExe.execute(animalPutCommand); assertTrue(response.isSuccess(),"业务执行失败"); }