class CustomController {

    @GetMapping("/customSend")

    public void send() {
        customSender.sendMsg("delay_queue_1","支付超时！");
    }

}

class CustomControllerTest {

        @Autowired
    private CustomSender customSender;

        @Test
    public void send() {

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            customSender.sendMsg("delay_queue_1","支付超时，取消订单通知！");
        }

}