title: Spring boot camel integration test, CamelContext autowire fails
body: <p>I am writing unit test for Camel route. I need to use @SpringBootTest so that I can also use @TestPropertySource. I have several property file mapped property classes.</p>
  <p>My test code looks like this</p>
  <pre><code>@SpringBootTest(classes = {CamelAutoConfiguration.class})
  @RunWith(CamelSpringBootRunner.class)
  @BootstrapWith(CamelTestContextBootstrapper.class)
  @ActiveProfiles(&quot;test&quot;)
  @TestPropertySource(locations = &quot;classpath:application-test.yml&quot;)
  @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
  @ContextConfiguration(classes = {ApplicationConfig.class, SFTPConfig.class, CamelTestContextBootstrapper.class})
  @EnableConfigurationProperties
  public class RouteBuilderTest
  {
  
      @Autowired
      private CamelContext camelContext;
  </code></pre>
  <p>I have added below dependency also as I am using junit4 in project.</p>
  <pre><code>&lt;dependency&gt;
       &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
       &lt;artifactId&gt;camel-test-spring&lt;/artifactId&gt;
       &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>Autowiring of CamelContext fails. With standard spring error.</p>
  <pre><code>No qualifying bean of type 'org.apache.camel.CamelContext' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  </code></pre>
  <p>Please help. Badly stuck on this.</p>