@Operation(summary = "秒杀场景一(sychronized同步锁实现)")
    @PostMapping("/sychronized")
    public Result doWithSychronized(@RequestBody @Valid SeckillWebMockRequestDTO dto) {
        processSeckill(dto, SYCHRONIZED);
        return Result.ok();
        //待mq监听器处理完成打印日志，不在此处打印日志
    }
@Test
    void testDoWithSychronized() {
        SeckillWebMockRequestDTO requestDTO = new SeckillWebMockRequestDTO();
        requestDTO.setSeckillId(1L);
        requestDTO.setRequestCount(1);
        requestDTO.setCorePoolSize(1);
        requestDTO.setMaxPoolSize(10);
        SeckillMockRequestDTO any = new SeckillMockRequestDTO();
        any.setSeckillId(1L);
        Result response = seckillMockController.doWithSychronized(requestDTO);

        verify(seckillService, times(0)).execute(any(SeckillMockRequestDTO.class), anyInt());
        assertEquals(0, response.getCode());
    }