title: Camel Mock test using file as input
body: <p>I want to create a Mock Test for a Camel route which uses as input a file:</p>
  
  <pre><code>&lt;route id="myroute"&gt;
      &lt;from uri="file:/var/file.log&amp;amp;noop=true" /&gt;
       . . .
  &lt;/route&gt;
  </code></pre>
  
  <p>So far I have been able to include a "direct:start" element at the beginning of the route and include manually the file as body::</p>
  
  <pre><code> context.createProducerTemplate().sendBody("direct:start", "data1-data2-data3");
  </code></pre>
  
  <p>I guess there must be a better way for doing it, without changing the original Spring XML file. Any help ?
  Thanks  </p>