### Question:
Demo09Producer { public void syncSend(Integer id) { Demo09Message message = new Demo09Message(); message.setId(id); rabbitTemplate.convertAndSend(Demo09Message.EXCHANGE, Demo09Message.ROUTING_KEY, message); }  void syncSend(Integer id);  }### Answer:
@Test public void testSyncSend() throws InterruptedException { for (int i = 0; i < 10; i++) { int id = (int) (System.currentTimeMillis() / 1000); producer.syncSend(id); } new CountDownLatch(1).await(); }