@Test
 public void testJmsTemplateBackOffEverything() {
   this.context =
       createContext(TestConfiguration2.class, TestConfiguration3.class, TestConfiguration5.class);
   JmsTemplate jmsTemplate = this.context.getBean(JmsTemplate.class);
   assertThat(jmsTemplate.getPriority()).isEqualTo(999);
   assertThat(this.context.getBean(ActiveMQConnectionFactory.class).getBrokerURL())
       .isEqualTo("foobar");
   JmsMessagingTemplate messagingTemplate = this.context.getBean(JmsMessagingTemplate.class);
   assertThat(messagingTemplate.getDefaultDestinationName()).isEqualTo("fooBar");
   assertThat(messagingTemplate.getJmsTemplate()).isEqualTo(jmsTemplate);
 }
 @Test
 public void testDefaultJmsConfiguration() {
   load(TestConfiguration.class);
   ActiveMQConnectionFactory connectionFactory =
       this.context.getBean(ActiveMQConnectionFactory.class);
   JmsTemplate jmsTemplate = this.context.getBean(JmsTemplate.class);
   JmsMessagingTemplate messagingTemplate = this.context.getBean(JmsMessagingTemplate.class);
   assertThat(connectionFactory).isEqualTo(jmsTemplate.getConnectionFactory());
   assertThat(messagingTemplate.getJmsTemplate()).isEqualTo(jmsTemplate);
   assertThat(((ActiveMQConnectionFactory) jmsTemplate.getConnectionFactory()).getBrokerURL())
       .isEqualTo(ACTIVEMQ_EMBEDDED_URL);
   assertThat(this.context.containsBean("jmsListenerContainerFactory")).isTrue();
 }
 @Test
 public void testJmsMessagingTemplateBackOff() {
   load(TestConfiguration5.class);
   JmsMessagingTemplate messagingTemplate = this.context.getBean(JmsMessagingTemplate.class);
   assertThat(messagingTemplate.getDefaultDestinationName()).isEqualTo("fooBar");
 }
 @Bean
 JmsMessagingTemplate jmsMessagingTemplate(JmsTemplate jmsTemplate) {
   JmsMessagingTemplate messagingTemplate = new JmsMessagingTemplate(jmsTemplate);
   messagingTemplate.setDefaultDestinationName("fooBar");
   return messagingTemplate;
 }