title: Migrating from CamelTestSupport to AbstractCamelTestNGSpringContextTests
body: <p>I've been using <code>Apache Camel</code> since 3-4 months on <code>Spring 4.0.7.RELEASE</code>
  I have several <code>Camel 2.14.0 TestNG</code> tests based on extending <code>CamelTestSupport</code>, in which I use some <code>MockEndpoint</code>s.
  I configured my routes by overriding the <code>createRouteBuilder()</code> method.</p>
  
  <p>Now I would need also to inject some Spring beans in one of them, by <code>@Autowired</code> annotation.
  By reading what is said at <a href="http://camel.apache.org/spring-testing.html" rel="nofollow">http://camel.apache.org/spring-testing.html</a>, I understood that I've to extend <code>AbstractCamelTestNGSpringContextTests</code> now, which supports <code>@Autowired</code>, <code>@DirtiesContext</code>, and <code>@ContextConfiguration</code>.</p>
  
  <p>While I understood that all <code>MockEndpoint</code>s are no more accessible by <code>getMockEndpoint()</code> method, but by using <code>@EndpointInject</code> annotation, it is not clear to me is how I can express my routes, because <code>createRouteBuilder(</code>) is not more available.</p>
  
  <p>I saw that is possible to define producers and consumers by using annotations, but I cannot manage to understand how routes can be designed.</p>
  
  <p>Many thanks to the community.</p>