### Question:
AutoReQueueScheduler { @Scheduled(cron = "${rabbitmq.auto-config.re-queue-config.cron}") public void autoReQueue() { log.info("Auto ReQueue Starting..."); String reQueueExchange = rabbitConfig.getReQueueConfig().getExchange().getName(); String reQueueRoutingKey = rabbitConfig.getReQueueConfig().getRoutingKey(); for (Map.Entry<String, QueueConfig> entry : rabbitConfig.getQueues().entrySet()) { if (BooleanUtils.isTrue(entry.getValue().getDeadLetterEnabled())) { ReQueueMessage reQueueMessage = ReQueueMessage.builder() .deadLetterQueue(rabbitConfig.getDeadLetterConfig().createDeadLetterQueueName(entry.getValue().getName())) .messageCount(messageCount) .build(); rabbitTemplate.convertAndSend(reQueueExchange, reQueueRoutingKey, reQueueMessage); } } log.info("Auto ReQueue completed..."); }  @Scheduled(cron = "${rabbitmq.auto-config.re-queue-config.cron}") void autoReQueue();  }### Answer:
@Test public void autoReQueueTest() { autoReQueueScheduler.autoReQueue(); verify(rabbitTemplate, times(2)).convertAndSend(anyString(), anyString(), any(ReQueueMessage.class)); }